Package-level declarations

Types

Link copied to clipboard

The controller responsible for managing laser pointer actions, including touch events, paint settings, and laser path state.

Functions

Link copied to clipboard

Composable function that animates the alpha (opacity) of the laser path based on its state. The animation is triggered when the laser ends, and its opacity smoothly transitions from 1f to 0f.

Link copied to clipboard

Composable function to create and remember the LaserPointerController.

Link copied to clipboard
fun Modifier.useLaserPointerMode(controller: LaserPointerController, progress: State<Float>, isEnabled: Boolean, onCanvasInvalidate: () -> Unit = { }): Modifier

A modifier that enables laser pointer mode on a canvas, allowing for touch gestures such as starting, moving, and ending a touch event with updates to the laser pointer’s appearance.