struct Color32

book_4_sparkGenerated
code_blocksInput

Description

A 32bit color, commonly used by things like vertex buffers.

The functionality on this is purposely left minimal so we're encouraged to use the regular Color struct.

Members

Static Members

Member NameSummary
FromRgbCreates a Color32 from a 32-bit RGB value.
FromRgbaCreates a Color32 from a 32-bit RGBA value.
MinReturns the component-wise minimum of two Color32 values.
MaxReturns the component-wise maximum of two Color32 values.
ReadReads a Color32 from a binary stream.
ParseParses a string to a nullable Color32.
WhiteA constant representing a fully opaque color white.
BlackA constant representing a fully opaque color black.
TransparentA constant representing a fully transparent color.

Instance Members

Member NameSummary
ToColorConvert this object to Color.
WriteWrites the Color32 to a binary stream.
HexString representation of the form "#RRGGBB[AA]".
RgbaString representation in the form of rgba( r, g, b, a ) css function notation.
RgbString representation in the form of rgb( r, g, b ) css function notation.
RgbaIntInteger representation of the form 0xRRGGBBAA.
RgbIntInteger representation of the form 0xRRGGBB.
RawIntInteger representation of the form 0xAABBGGRR as used by native code.
rThe red color component, in range of 0-255.
gThe green color component, in range of 0-255.
bThe blue color component, in range of 0-255.
aThe alpha/transparency color component, in range of 0 (fully transparent) to 255 (fully opaque).