Color
Object Hierarchy:
Description:
public struct Color : RGBA
Represents a RGBA color and has methods for manipulating the color.
Content:
Static methods:
Methods:
- public void set_hsv (double h, double s, double v)
Set HSV color values of this color.
- public void set_hue (double hue)
Sets the hue for the color.
- public void set_sat (double sat)
Sets the saturation for the color.
- public void set_val (double val)
Sets the value for the color.
- public void set_alpha (double alpha)
Sets the alpha for the color.
- public void get_hsv (out double h, out double s, out double v)
Get HSV color values of this color.
- public double get_hue ()
Returns the hue for the color.
- public double get_sat ()
Returns the saturation for the color.
- public double get_val ()
Returns the value for the color.
- public void add_hue (double val)
Increases the color's hue.
- public void set_min_sat (double sat)
Limits the color's saturation.
- public void set_min_value (double val)
Limits the color's value.
- public void set_max_sat (double sat)
Limits the color's saturation.
- public void set_max_val (double val)
Limits the color's value.
- public void multiply_sat (double amount)
Multiplies the color's saturation using the amount.
- public void brighten_val (double amount)
Brighten the color's value using the value.
- public void darken_val (double amount)
Darkens the color's value using the value.
- public void darken_by_sat (double amount)
Darkens the color's value using the saturtion.
- public string to_prefs_string ()
Convert color to string formatted like "%d;;%d;;%d;;%d" with numeric
entries ranged in 0..255
Inherited Members:
All known members inherited from struct Gdk.RGBA