InteractiveSketch
public protocol InteractiveSketch
Allows a Sketch
to recieve mouse events
-
Passes a pan gesture
Declaration
Swift
func mousePan(at point: Vector)
Parameters
point
The current location of the mouse
-
Passes a click
Declaration
Swift
func mouseDown(at point: Vector)
Parameters
point
The current location of the mouse
-
Passes a scroll gesture
Declaration
Swift
func scrolled(deltaX: Double, deltaY: Double, at point: Vector)
Parameters
deltaX
The horizontal delta
deltaY
The vertical delta
point
The current location of the mouse