Skip to main content

GLDrawHexToRGBA

Callable

  • GLDrawHexToRGBA(color: string, alpha?: number): number[]

  • Converts a hex color to a RGBA color


    Parameters

    • color: string

      Hex color code to convert to RGBA

    • alpha: number = 1

      The alpha value to use for the resulting RGBA

    Returns number[]

    • Converted color code