ColorAlphaType

Describes how to interpret the alpha component of a pixel. A pixel may be opaque, or alpha, describing multiple levels of transparency.

In simple blending, alpha weights the draw color and the destination color to create a new color. If alpha describes a weight from zero to one:

`new color = draw color * alpha + destination color * (1 - alpha)`

In practice alpha is encoded in two or more bits, where 1.0 equals all bits set.

RGB may have alpha included in each component value; the stored value is the original RGB multiplied by alpha. Premultiplied color components improve performance.

Entries

Link copied to clipboard

uninitialized

Link copied to clipboard

pixel is opaque

Link copied to clipboard

pixel components are premultiplied by alpha

Link copied to clipboard

pixel components are independent of alpha

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.