pike.git
/
src
/
modules
/
Image
/
colors.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/Image/colors.c:1:
/* **! module Image **! note
-
**! $Id: colors.c,v 1.
49
2001/
04
/
14
09
:
44
:
22
hubbe
Exp $
+
**! $Id: colors.c,v 1.
50
2001/
07
/
01
21
:
53
:
37
mast
Exp $
**! submodule Color **! **! This module keeps names and easy handling **! for easy color support. It gives you an easy **! way to get colors from names. **! **! A color is here an object, containing color **! information and methods for conversion, see below. **! **! <ref>Image.Color</ref> can be called to make a color object.
pike.git/src/modules/Image/colors.c:172:
**! class Color **! This is the color object. It has six readable variables, **! <tt>r</tt>, <tt>g</tt>, <tt>b</tt>, for the <i>red</i>, **! <i>green</i> and <i>blue</i> values, **! and <tt>h</tt>, <tt>s</tt>, <tt>v</tt>, for **! the <i>hue</i>, <i>saturation</i> anv <i>value</i> values. */ #include "global.h"
-
RCSID("$Id: colors.c,v 1.
49
2001/
04
/
14
09
:
44
:
22
hubbe
Exp $");
+
RCSID("$Id: colors.c,v 1.
50
2001/
07
/
01
21
:
53
:
37
mast
Exp $");
#include "image_machine.h" #include <math.h> #include "stralloc.h" #include "pike_macros.h" #include "object.h" #include "constants.h" #include "interpret.h"
pike.git/src/modules/Image/colors.c:339:
void _img_nct_map_to_flat_cubicles(rgb_group *s, rgb_group *d, int n, struct neo_colortable *nct, struct nct_dither *dith, int rowlen); static void try_find_name(struct color_struct *this) { rgb_group d;
-
static struct nct_dither dith = { NCTD_NONE,NULL,NULL,NULL,NULL,-1 };
+
static struct nct_dither dith = {
+
NCTD_NONE,NULL,NULL,NULL,NULL,-1
,
+
#ifdef
HAVE_UNION_INIT
+
{{NULL,NULL,0.0,0.0,0.0,0.0,0,0}}, /* Only to avoid warnings. */
+
#endif
+
};
if (!colors) make_colors(); if (this->name) fatal("try_find_name called twice\n"); if (this->rgbl.r!=COLOR_TO_COLORL(this->rgb.r) || this->rgbl.g!=COLOR_TO_COLORL(this->rgb.g) || this->rgbl.b!=COLOR_TO_COLORL(this->rgb.b))