sketches
    Preparing search index...

    Class SketchAbstract

    Interface to create a p5.js sketch.

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get MIN_RESOLUTION(): number

      Returns number

      The minimum resolution for a sketch.

    Methods

    • The main method should define the setup, draw, and event handler functions of the p5.js sketch context. The main method will be passed to the p5 constructor as part of the sketch lifecycle.

      Parameters

      • ctx: p5

        The p5.js sketch context.

      Returns void