SketchAnimation

public enum SketchAnimation

Controls Sketch animation

  • Only call .draw() once

    Declaration

    Swift

    case none
  • Repeatedly call .draw() at the specified framerate

    Declaration

    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.