bitlib_c
0.2.4
|
Go to the source code of this file.
Functions | |
void | cairo_set_source_color (cairo_t *cr, bl_color c) |
void | cairo_set_source_grey (cairo_t *cr, double g) |
void | cairo_set_source_white (cairo_t *cr) |
void | cairo_set_source_black (cairo_t *cr) |
void | cairo_set_source_hsv (cairo_t *cr, double h, double s, double v) |
void | cairo_set_source_random_rgb (cairo_t *cr) |
void | cairo_set_source_random_grey (cairo_t *cr) |
void | cairo_clear_rgba (cairo_t *cr, double r, double g, double b, double a) |
void | cairo_clear_rgb (cairo_t *cr, double r, double g, double b) |
void | cairo_clear_color (cairo_t *cr, bl_color c) |
void | cairo_clear_grey (cairo_t *cr, double g) |
void | cairo_clear_white (cairo_t *cr) |
void | cairo_clear_black (cairo_t *cr) |
void | cairo_clear_hsv (cairo_t *cr, double h, double s, double v) |
void | cairo_clear_random_rgb (cairo_t *cr) |
void | cairo_clear_random_grey (cairo_t *cr) |
void cairo_clear_black | ( | cairo_t * | cr | ) |
Clears the cairo context to black.
cairo_t | *cr The cairo context. |
Examples
cairo_clear_black(cr);
void cairo_clear_color | ( | cairo_t * | cr, |
bl_color | c | ||
) |
Clears the cairo context to a color specified by an instance of bl_color
.
cairo_t | *cr The cairo context. |
bl_color | c The color to use. |
Examples
bl_color c = bl_color_hsv(90, 1, 0.5); cairo_clear_color(cr, c);
void cairo_clear_grey | ( | cairo_t * | cr, |
double | g | ||
) |
Clears the cairo context to a shade of grey.
cairo_t | *cr The cairo context. |
double | g A value from 0 to 1 representing a shade of grey. |
Examples
cairo_clear_grey(cr, 0.5);
void cairo_clear_hsv | ( | cairo_t * | cr, |
double | h, | ||
double | s, | ||
double | v | ||
) |
Clears the cairo context to color specified with hue, saturation and value.
cairo_t | *cr The cairo context. |
double | h The hue. |
double | s The saturation. |
double | v The value. |
Examples
cairo_clear_hsv(cr, 90, 1, 0.5);
void cairo_clear_random_grey | ( | cairo_t * | cr | ) |
Clears the cairo context to a random shade of grey.
cairo_t | *cr The cairo context. |
Examples
cairo_clear_random_grey(cr);
void cairo_clear_random_rgb | ( | cairo_t * | cr | ) |
Clears the cairo context to a random rgb color.
cairo_t | *cr The cairo context. |
Examples
cairo_clear_random_rgb(cr);
void cairo_clear_rgb | ( | cairo_t * | cr, |
double | r, | ||
double | g, | ||
double | b | ||
) |
Clears the cairo context to an rgb color value.
cairo_t | *cr The cairo context. |
double | r The red value. |
double | g The green value. |
double | b The blue value. |
Examples
cairo_clear_rgb(cr, 1, 1, 1);
void cairo_clear_rgba | ( | cairo_t * | cr, |
double | r, | ||
double | g, | ||
double | b, | ||
double | a | ||
) |
Clears the cairo context to an rgba color value.
cairo_t | *cr The cairo context. |
double | r The red value. |
double | g The green value. |
double | b The blue value. |
double | a The alpha value. |
Examples
cairo_clear_rgba(cr, 1, 1, 1, 0.5);
void cairo_clear_white | ( | cairo_t * | cr | ) |
Clears the cairo context to white.
cairo_t | *cr The cairo context. |
Examples
cairo_clear_white(cr);
void cairo_set_source_black | ( | cairo_t * | cr | ) |
Sets the drawing source color to black.
cairo_t | *cr The cairo context. |
Examples
cairo_set_source_black(cr);
void cairo_set_source_color | ( | cairo_t * | cr, |
bl_color | c | ||
) |
Sets the drawing source color using an instance of bl_color
.
cairo_t | *cr The cairo context. |
bl_color | c The color to use. |
Examples
bl_color c = bl_color_hsv(90, 1, 0.5); cairo_set_source_color(cr, c);
void cairo_set_source_grey | ( | cairo_t * | cr, |
double | g | ||
) |
Sets the drawing source color to a shade of grey.
cairo_t | *cr The cairo context. |
double | g A value from 0 to 1 representing a shade of grey. |
Examples
cairo_set_source_grey(cr, 0.5);
void cairo_set_source_hsv | ( | cairo_t * | cr, |
double | h, | ||
double | s, | ||
double | v | ||
) |
Sets the drawing source color using hue, saturation and value.
cairo_t | *cr The cairo context. |
double | h The hue. |
double | s The saturation. |
double | v The value. |
Examples
cairo_set_source_hsv(90, 1, 0.5);
void cairo_set_source_random_grey | ( | cairo_t * | cr | ) |
Sets the drawing source color to a random shade of grey.
cairo_t | *cr The cairo context. |
Examples
cairo_set_source_random_grey(cr);
void cairo_set_source_random_rgb | ( | cairo_t * | cr | ) |
Sets the drawing source color to a random rgb value.
cairo_t | *cr The cairo context. |
Examples
cairo_set_source_random_rgb(cr);
void cairo_set_source_white | ( | cairo_t * | cr | ) |
Sets the drawing source color to white.
cairo_t | *cr The cairo context. |
Examples
cairo_set_source_white(cr);