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.
new(packed : UInt64)
Initialize the color with a 64-bit unsigned integer representing red, green, blue, and alpha.
Instance methods
with_alpha(alpha : UInt16)
Initialize the color with the same red, green, and blue values, but with the specified alpha value.