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