SketchAnimation
public enum SketchAnimation
Controls Sketch
animation
-
Only call
.draw()
onceDeclaration
Swift
case none
-
Repeatedly call
.draw()
at the specified framerateDeclaration
Swift
case animate(frameRate: Int)
-
The amount of time each frame takes
Declaration
Swift
public func frameRateInterval(_ frameRate: Int) -> TimeInterval
Parameters
frameRate
The framerate.
Return Value
The number of seconds each frame takes.