@batpb/genart - v2.0.0-rc.3-alpha.2
    Preparing search index...

    Class GraphicsContextHandler

    A class for managing multiple GraphicsContext objects.

    2.0.0

    Index

    Constructors

    Accessors

    • get activeGraphics(): Graphics

      Returns Graphics

      The p5.Graphics object associated with the active GraphicsContext.

      2.0.0

    • get graphics(): Graphics[]

      Returns Graphics[]

      An array of the p5.Graphics objects associated with all GraphicsContext objects in the handler.

      2.0.0

    • get names(): string[]

      Returns string[]

      An array of the names of all GraphicsContext objects in the handler.

      2.0.0

    Methods

    • Adds a GraphicsContext to the handler.

      Parameters

      Returns boolean

      true if the context was added successfully, false otherwise.

      2.0.0

    • Adds multiple GraphicsContext objects to the handler.

      Parameters

      Returns boolean

      true if all contexts were added successfully, false otherwise.

      2.0.0

    • Sets the active GraphicsContext to the context with the specified name.

      Parameters

      Returns void

      if the context with the specified name is not found.

      2.0.0