struct Blend2D::Styling::RGBA64
- Blend2D::Styling::RGBA64
- Struct
- Value
- Object
Defined in:
blend2d/styling/color.crConstant Summary
-
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 Method Summary
- #a : UInt16
- #b : UInt16
- #g : UInt16
-
#opaque
Initialize the color with full alpha.
- #r : UInt16
-
#raw : UInt64
Pack the integers into a 64-bit unsigned integer.
- #to_rgba32
-
#transparent
Initialize the color with zero alpha.
-
#with_alpha(alpha : UInt16)
Initialize the color with the same red, green, and blue values, but with the specified alpha value.
Constructor Detail
def self.new(r : UInt16, g : UInt16, b : UInt16, a : UInt16)
#
Initialize the color with four 16-bit unsigned integers representing red, green, blue, and alpha.
def self.new(packed : UInt64)
#
Initialize the color with a 64-bit unsigned integer representing red, green, blue, and alpha.
Instance Method Detail
def to_rgba32
#
def with_alpha(alpha : UInt16)
#
Initialize the color with the same red, green, and blue values, but with the specified alpha value.