q5play
    Preparing search index...

    Function shadow

    • 💅 Sets the shadow color. The default is transparent (no shadow).

      Shadows apply to anything drawn to the canvas, including filled shapes, strokes, text, and images.

      Like the color function, this function can accept colors in a wide range of formats: as a CSS color string, a Color object, grayscale value, or color component values.

      Not available in q5 WebGPU.

      Parameters

      • color: string | Color

        shadow color

      Returns void