Aggregate

    Palette aggregates are (red, green, blue, alpha) quadruplets.

    PNG.RGBA.swift:212
    typealias Aggregate = (UInt8, UInt8, UInt8, UInt8)

    Other members in extension

    Type members

    Instance members

    • var premultiplied: `Self`

      The color obtained by premultiplying the red, green, and blue components of this color with its alpha channel.

    • var straightened: `Self`

      The color obtained by straightening the red, green, and blue components of this color according to its alpha channel.

    • var va: PNG.VA<T>

      The grayscale-alpha color obtained by discarding the green and blue components of this color.

    • func premultiplied<U>(as: U.Type) -> PNG.RGBA<T>

      The color obtained by premultiplying the red, green, and blue components of this color with its alpha channel, performing the premultiplication in the given integer type.

    • func straightened<U>(as: U.Type) -> PNG.RGBA<T>

      The color obtained by straightening the red, green, and blue components of this color according to its alpha channel, performing the straightening in the given integer type.