class HexaPDF::Content::ColorSpace::DeviceRGB
The DeviceRGB color space.
def self.new(_definition = nil)
def self.new(_definition = nil) DEFAULT end
def color(r, g, b)
between 0.0 and 1.0. The integer color values are automatically normalized to the
Color values can either be integers in the range from 0 to 255 or floating point numbers
Returns the color object for the red, green and blue components.
def color(r, g, b) Color.new(ColorUtils.normalize_value(r, 255), ColorUtils.normalize_value(g, 255), ColorUtils.normalize_value(b, 255)) end
def default_color
def default_color Color.new(0.0, 0.0, 0.0) end
def family
def family :DeviceRGB end
def prenormalized_color(r, g, b)
normalization.
Returns the color object for the red, green and blue components without applying value
def prenormalized_color(r, g, b) Color.new(r, g, b) end