Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 836 Bytes

Color.md

File metadata and controls

24 lines (16 loc) · 836 Bytes

Color

Class stores information about a color.

Contructors.

.new(red : Float64 = 0.0, green : Float64 = 0.0, blue : Float64 = 0.0)

.new(color : Gdk::Color)

Class method

.new_from_bytes(red : UInt8 = 0, green : UInt8 = 0, blue : UInt8 = 0) - returns a new Color.

Methods

red - returns the red component of the color.
red=(value : Float64) - sets the red component of the color ( from 0.0 to 1.0)
green - returns the green component of the color.
green=(value : Float64) - sets the green component of the color.
blue - returns the blue component of the color.
blue=(value : Float64) - sets the blue component of the color.
alfa - returns the alfa component of the color.
alfa=(value : Float64) - sets the alfa component of the color.