Branch: Tag:

2001-07-17

2001-07-17 03:44:13 by Martin Nilsson <mani@lysator.liu.se>

Made appendix a keyword

Rev: src/modules/Image/colors.c:1.52
Rev: src/modules/Image/layers.c:1.71

1:   /*   **! module Image   **! note - **! $Id: colors.c,v 1.51 2001/07/12 13:52:47 grubba Exp $ + **! $Id: colors.c,v 1.52 2001/07/17 03:44:13 nilsson Exp $   **! submodule Color   **!   **! This module keeps names and easy handling
63:   **! 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>   **! + **! see also: Image.Color.Color->name, Image.Color.Color->rgb, colors   **! - **! <add_appendix name="colors" title="Image.Color colors"><execute> + **! added: + **! pike 0.7   **! -  + **! note: + **! <tt>Image.Color["something"]</tt> will never(!) generate an error, + **! but a zero_type 0, if the color is unknown. This is enough + **! to give the error "not present in module", if used + **! as <tt>Image.Color.something</tt>, though. + **! + **! If you are using colors from for instance a webpage, you might + **! want to create the color from <ref>Image.Color.guess</ref>(), + **! since that method is more tolerant for mistakes and errors. + **! + **! <tt>Image.Color</tt>() is case- and space-sensitive. + **! Use <ref>Image.Color.guess</ref>() to catch all variants. + **! + **! and subtract with a space (lower_case(x)-" ") to make + **! sure you get all variants. + **! + **! see also: Image.Color.Color, Image.Color.guess, Image, Image.Colortable + **! + **! + **! appendix Image.Color colors + **! <execute> + **!   **! import Image;   **!   **! array modifiers=({"neon","light","dark","bright","dull"});
144:   **! }   **!   **! </execute> - **! </add_appendix> +    **! - **! see also: Image.Color.Color->name, Image.Color.Color->rgb, colors - **! - **! added: - **! pike 0.7 - **! - **! note: - **! <tt>Image.Color["something"]</tt> will never(!) generate an error, - **! but a zero_type 0, if the color is unknown. This is enough - **! to give the error "not present in module", if used - **! as <tt>Image.Color.something</tt>, though. - **! - **! If you are using colors from for instance a webpage, you might - **! want to create the color from <ref>Image.Color.guess</ref>(), - **! since that method is more tolerant for mistakes and errors. - **! - **! <tt>Image.Color</tt>() is case- and space-sensitive. - **! Use <ref>Image.Color.guess</ref>() to catch all variants. - **! - **! and subtract with a space (lower_case(x)-" ") to make - **! sure you get all variants. - **! - **! see also: Image.Color.Color, Image.Color.guess, Image, Image.Colortable - **! +    **! 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>,
179:      #include "global.h"    - RCSID("$Id: colors.c,v 1.51 2001/07/12 13:52:47 grubba Exp $"); + RCSID("$Id: colors.c,v 1.52 2001/07/17 03:44:13 nilsson Exp $");      #include "image_machine.h"