ASCIIGround - v1.1.2
    Preparing search index...

    Class RainPattern

    Matrix-style rain pattern that creates falling streams of characters. Features configurable rain density, drop lengths, speeds, and character mutation.

    Hierarchy (View Summary)

    Index

    Accessors

    • get isDirty(): boolean

      Returns boolean

    • set isDirty(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    Constructors

    Methods

    • Handle mouse interactions with the pattern. Override to implement custom mouse effects.

      Parameters

      • _x: number

        mouse X position relative to canvas.

      • _y: number

        mouse Y position relative to canvas.

      • _clicked: boolean

        Whether mouse was clicked this frame.

      Returns void

    Properties

    Options for the pattern, initialized with default values.

    _isDirty: boolean = false

    Flag indicating if the pattern needs to be re-rendered. This is set to true when pattern options change in a way that required re-render (e.g. color change).

    ID: "rain" = 'rain'

    Unique identifier for the pattern, that should be overridden in subclasses.