struct

Blend2D::Styling::RGBA64

Inherits Struct < Value < Object

Constants

BLACK = RGBA64.new(65535, 65535, 65535, 65535)
BLUE = RGBA64.new(0, 0, 65535, 65535)
GREEN = RGBA64.new(0, 65535, 0, 65535)
RED = RGBA64.new(65535, 0, 0, 65535)
WHITE = RGBA64.new(65535, 65535, 65535, 65535)

Constructors

new(r : UInt16, g : UInt16, b : UInt16, a : UInt16)

Initialize the color with four 16-bit unsigned integers representing red, green, blue, and alpha.

Source
new(packed : UInt64)

Initialize the color with a 64-bit unsigned integer representing red, green, blue, and alpha.

Source

Instance methods

opaque

Initialize the color with full alpha.

Source
raw

Pack the integers into a 64-bit unsigned integer.

Source
to_rgba32

Convert the RGBA64 to an RGBA32 by downscaling each integer to 8 bits.

Source
transparent

Initialize the color with zero alpha.

Source
with_alpha(alpha : UInt16)

Initialize the color with the same red, green, and blue values, but with the specified alpha value.

Source