class

Tres::Color

Inherits Tres::Vector3 < Tres::Vector < Reference < Object

Constructors

new(red, green, blue)
Source
new(color : Color)
Source
new(hex : Int)
Source
new(style : String)
Source

Class methods

dimensions
Source
elements
Source

Instance methods

add_colors(a, b)
Source
b=(v)
Source
clone
Source
convert_gamma_to_linear
Source
convert_linear_to_gamma
Source
copy_gamma_to_linear(color, gamma_factor = 2.0_f32)
Source
copy_linear_to_gamma(color, gamma_factor = 2.0_f32)
Source
g=(v)
Source
hex_string
Source
hsl

h,s,l ranges are in 0.0 - 1.0

Source
offset_hsl(h, s, l)
Source
r=(v)
Source
set(value : Color)
Source
set(value : Int)
Source
set(value : String)
Source
set_hex(hex)
Source
set_hsl(h, s, l)
Source
set_rgb(r, g, b)
Source
set_style(style)
Source
style
Source