Function color

  • Set the color for drawing rectangles, particles, texts, and characters. Setting the color prior to char() will recolor the pixel art. Use color("black") to restore and use the original colors.

    When you specify a custom color palette, you can designate colors using the index of that palette. When color names like "red", "yellow" etc. are specified as arguments to the color() function, it assigns the closest color from the color palette to the original color.

    Parameters

    • colorNameOrColorIndex: Color

    Returns void

Generated using TypeDoc