Hex Core JS
    Preparing search index...

    Type Alias CanvasAnimatorProps

    CanvasAnimatorProps: {
        maxFrameRate?: number;
        onFrame: (
            ctx: CanvasRenderingContext2D,
            width: number,
            height: number,
            playbackInformation: PlaybackInformation,
        ) => void;
    } & Partial<ClassNameProps>

    Type Declaration

    • OptionalmaxFrameRate?: number

      The maximum framerate for the animation. Defaults to 60.

    • onFrame: (
          ctx: CanvasRenderingContext2D,
          width: number,
          height: number,
          playbackInformation: PlaybackInformation,
      ) => void

      Function which updates the given canvas 2d context on each frame.