4 * An OpenGL based 'interactive canvas' library.
6 * Authored By Matthew Allum <mallum@openedhand.com>
8 * Copyright (C) 2006 OpenedHand
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the
22 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 * Boston, MA 02111-1307, USA.
26 #include "clutter-color.h"
29 clutter_color_new (guint8 r, guint8 g, guint8 b, guint8 a)
31 return ( r | g << 8 | b << 16 | a << 24 );
35 clutter_color_set (ClutterColor *color,
41 *color = ( r | g << 8 | b << 16 | a << 24 );
45 clutter_color_get (ClutterColor color,
52 *r = clutter_color_r(color);
54 *g = clutter_color_g(color);
56 *b = clutter_color_b(color);
58 *a = clutter_color_a(color);