diff --git a/ChangeLog b/ChangeLog index 5a3fe9bf14..d577de1fb6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-11-08 Dave Neary + + * libgimpcolor/gimpcolorspace.c: Finished gtk-docs. The docs for + these could perhaps include formulae, but for most of the + colorspaces that would be the same thing as copying the code + into a comment, which seems pointless. + 2003-11-08 Sven Neumann * app/widgets/gimptemplateeditor.c: don't show a radio button for diff --git a/libgimpcolor/gimpcolorspace.c b/libgimpcolor/gimpcolorspace.c index 8184232e50..f193935168 100644 --- a/libgimpcolor/gimpcolorspace.c +++ b/libgimpcolor/gimpcolorspace.c @@ -933,6 +933,14 @@ gimp_cmyk_to_rgb_int (gint *cyan, *yellow = 255 - y; } +/** + * gimp_rgb_to_hsv4: + * @rgb: RGB triplet, rgb[0] is red channel, rgb[1] is green, + * rgb[2] is blue (0..255) + * @hue: Pointer to hue channel (0..1) + * @saturation: Pointer to saturation channel (0..1) + * @value: Pointer to value channel (0..1) + **/ void gimp_rgb_to_hsv4 (guchar *rgb, @@ -998,6 +1006,15 @@ gimp_rgb_to_hsv4 (guchar *rgb, *value = v; } +/** + * gimp_hsv_to_rgb4: + * @rgb: RGB triplet, rgb[0] is red channel, rgb[1] is green, + * rgb[2] is blue (0..255) + * @hue: Hue channel (0..1) + * @saturation: Saturation channel (0..1) + * @value: Value channel (0..1) + **/ + void gimp_hsv_to_rgb4 (guchar *rgb, gdouble hue,