• Parameters

    • string: string

      a hex color code as a string

    Returns number[]

    three values between 0 and 255

    Description

    Convert a hex string into an array of three numbers, the rgb values (between 0 and 1). This ignores any alpha values.

    Linkcode

    Origami ./src/convert/svgParsers/colors/hexToRGB.js 10