Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

color.cpp File Reference

Detailed Description

Colors and colorspaces.

Author: Lauris Kaplinski <lauris@kaplinski.com> bulia byak <buliabyak@users.sf.net>

Copyright (C) 2001-2002 Lauris Kaplinski Copyright (C) 2001 Ximian, Inc.

Released under GNU GPL, read the file 'COPYING' for more information

Definition in file color.cpp.

#include <math.h>
#include <glib.h>
#include "color.h"

Go to the source code of this file.


struct  SPColorSpace
 A color space is just a name. More...


float hue_2_rgb (float v1, float v2, float h)
void sp_color_cmyk_to_rgb_floatv (float *rgb, float c, float m, float y, float k)
void sp_color_copy (SPColor *dst, SPColor const *src)
void sp_color_get_cmyk_floatv (SPColor const *color, float *cmyk)
SPColorSpaceClass sp_color_get_colorspace_class (SPColor const *color)
SPColorSpaceType sp_color_get_colorspace_type (SPColor const *color)
void sp_color_get_rgb_floatv (SPColor const *color, float *rgb)
guint32 sp_color_get_rgba32_falpha (SPColor const *color, float alpha)
guint32 sp_color_get_rgba32_ualpha (SPColor const *color, guint32 alpha)
void sp_color_hsl_to_rgb_floatv (float *rgb, float h, float s, float l)
void sp_color_hsv_to_rgb_floatv (float *rgb, float h, float s, float v)
gboolean sp_color_is_close (SPColor const *c0, SPColor const *c1, float epsilon)
gboolean sp_color_is_equal (SPColor const *c0, SPColor const *c1)
void sp_color_rgb_to_cmyk_floatv (float *cmyk, float r, float g, float b)
void sp_color_rgb_to_hsl_floatv (float *hsl, float r, float g, float b)
void sp_color_rgb_to_hsv_floatv (float *hsv, float r, float g, float b)
void sp_color_set_cmyk_float (SPColor *color, float c, float m, float y, float k)
void sp_color_set_rgb_float (SPColor *color, float r, float g, float b)
void sp_color_set_rgb_rgba32 (SPColor *color, guint32 value)


static SPColorSpace const CMYK = {"CMYK"}
static SPColorSpace const RGB = {"RGB"}

Generated by  Doxygen 1.6.0   Back to index