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.
35
2000/08/
10
09
:
51
:
53
per
Exp $
+
**! $Id: colors.c,v 1.
36
2000/08/
11
08
:
42
:
19
mirar
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:61:
**! The <tt>hsv_string</tt> is another hue, saturation, value **! representation, but in floats; hue is in degree range (0..360), **! and saturation and value is given in percent. <i>This is not **! the same as returned or given to the <ref>hsv</ref>() methods!</i> **! **! **! <add_appendix name="colors" title="Image.Color colors"><execute> **! **! import Image; **!
-
**!
constant
modifiers=({"neon","light","dark","bright","dull"});
+
**!
array
modifiers=({"neon","light","dark","bright","dull"});
**! **! object F=Font(); **! **! mixed color_info(array(object) ac) **! { **! **! #define YZ 14 **! #define YZz (YZ+1) **! #define MODX 32 **! #define CXZ 64
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.
35
2000/08/
10
09
:
51
:
53
per
Exp $");
+
RCSID("$Id: colors.c,v 1.
36
2000/08/
11
08
:
42
:
19
mirar
Exp $");
#include "image_machine.h" #include <math.h> #include "stralloc.h" #include "pike_macros.h" #include "object.h" #include "constants.h" #include "interpret.h"