tinyimg - v1.0.0
    Preparing search index...

    Function readColor

    • Turns a color into channel bytes.

      Parameters

      • color: Color

        The color.

      • channels: number

        How many the image has.

      Returns Uint8Array

      Exactly channels bytes.