1/* Color utilties
2 *
3 * Copyright (C) 1999 The Free Software Foundation
4 *
5 * Authors: Simon Budig <Simon.Budig@unix-ag.org> (original code)
6 * Federico Mena-Quintero <federico@gimp.org> (cleanup for GTK+)
7 * Jonathan Blandford <jrb@redhat.com> (cleanup for GTK+)
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
21 */
22
23/*
24 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
25 * file for a list of people on the GTK+ Team. See the ChangeLog
26 * files for a list of changes. These files are distributed with
27 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
28 */
29
30#ifndef __GTK_COLOR_UTILS_H__
31#define __GTK_COLOR_UTILS_H__
32
33#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
34#error "Only <gtk/gtk.h> can be included directly."
35#endif
36
37#include <glib.h>
38#include <gdk/gdk.h>
39
40G_BEGIN_DECLS
41
42GDK_AVAILABLE_IN_ALL
43void gtk_hsv_to_rgb (gdouble h, gdouble s, gdouble v,
44 gdouble *r, gdouble *g, gdouble *b);
45GDK_AVAILABLE_IN_ALL
46void gtk_rgb_to_hsv (gdouble r, gdouble g, gdouble b,
47 gdouble *h, gdouble *s, gdouble *v);
48
49G_END_DECLS
50
51#endif /* __GTK_COLOR_UTILS_H__ */
52

source code of include/gtk-3.0/gtk/gtkcolorutils.h