Small World Engine API Reference - v0.46.1
    Preparing search index...

    Class ColorUtils

    Utility class for color conversions and manipulations.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Creates a Color instance from a CSS color string.

      Parameters

      • cssColor: string

        The CSS color string (e.g., "#ff0000", "rgb(255, 0, 0)", "red").

      Returns Color

      A new Color instance.