Function getGreen

  • Get the Green value for a color.

    Returns

    the red value of the color

    Parameters

    • color: Color

      the color to get the value from

    • mode: string = "decimal"

      the mode to return the value in, if no valid mode is provided it always returns decimal

      • decimal (default): each color component represented as an integer between 0-255.
      • percentage: each color component represented as a percentage
      • raw. Raw is the internal color object values, with no rounding

    Returns number

Generated using TypeDoc