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) -> TimeIntervalParameters
frameRateThe framerate.
Return Value
The number of seconds each frame takes.
View on GitHub
SketchAnimation Enumeration Reference