From 7428424bd84f1187c6345b54a8c4eebcf017d98f Mon Sep 17 00:00:00 2001 From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org> Date: Sun, 24 Jan 1999 02:14:29 +0100 Subject: [PATCH] doc fixes Rev: bin/mkwmml.pike:1.10 Rev: src/modules/Image/Makefile:1.13 Rev: src/modules/Image/colors.c:1.4 Rev: src/modules/Image/doc-header:1.5 --- bin/mkwmml.pike | 24 +++++++++++++++++++++++- src/modules/Image/Makefile | 3 ++- src/modules/Image/colors.c | 31 +++++++++++++++---------------- src/modules/Image/doc-header | 4 ++++ 4 files changed, 44 insertions(+), 18 deletions(-) diff --git a/bin/mkwmml.pike b/bin/mkwmml.pike index ee25680f22..2503fa0e91 100644 --- a/bin/mkwmml.pike +++ b/bin/mkwmml.pike @@ -1,4 +1,4 @@ -/* $Id: mkwmml.pike,v 1.9 1998/07/04 15:57:14 mast Exp $ */ +/* $Id: mkwmml.pike,v 1.10 1999/01/24 01:14:29 mirar Exp $ */ import Stdio; import Array; @@ -114,6 +114,12 @@ mapping keywords= return complain("note w/o method, class or module"); descM=nowM->note||(nowM->note=(["_line":line])); }, + "added":lambda(string arg,string line) + { + if (!lower_nowM()) + return complain("added in: w/o method, class or module"); + descM=nowM->added||(nowM->added=(["_line":line])); + }, "bugs":lambda(string arg,string line) { if (!lower_nowM()) @@ -364,6 +370,22 @@ void document(string enttype, f->write("</man_note>\n\n"); } +// [BUGS] + + if (huh->bugs && huh->bugs->desc) + { + f->write("<man_bugs>\n"); + f->write(fixdesc(huh->bugs->desc,prefix,huh->_line)+"\n"); + f->write("</man_bugs>\n\n"); + } + +// [ADDED] + + if (huh->added && huh->added->desc) + { + /* noop */ + } + // [SEE ALSO] if (huh["see also"]) diff --git a/src/modules/Image/Makefile b/src/modules/Image/Makefile index 0d327902cc..fa3bcf81df 100644 --- a/src/modules/Image/Makefile +++ b/src/modules/Image/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.12 1998/05/21 11:55:25 grubba Exp $ +# $Id: Makefile,v 1.13 1999/01/24 01:14:18 mirar Exp $ DOCFILES = doc-header \ image.c \ @@ -30,6 +30,7 @@ DOCFILES = doc-header \ polyfill.c \ togif.c \ x.c \ + colors.c \ doc-footer WMMLDOCPLACE = ../../../tutorial/Image.wmml diff --git a/src/modules/Image/colors.c b/src/modules/Image/colors.c index 1387155098..f21875da69 100644 --- a/src/modules/Image/colors.c +++ b/src/modules/Image/colors.c @@ -1,7 +1,7 @@ /* **! module Image **! note -**! $Id: colors.c,v 1.3 1999/01/24 00:47:33 mirar Exp $ +**! $Id: colors.c,v 1.4 1999/01/24 01:14:19 mirar Exp $ **! submodule color **! **! This module keeps names and easy handling @@ -44,12 +44,12 @@ **! **! The prefix_string method is a form for getting modified **! colors, it understands all modifiers -**! (<ref to=Image.color.color->light>light</ref>, -**! <ref to=Image.color.color->dark>dark</ref>, -**! <ref to=Image.color.color->bright>bright</ref>, -**! <ref to=Image.color.color->dull>dull</ref> and -**! <ref to=Image.color.color->neon>neon</ref>). Simply use -**! <method><color> (as in <tt>lightgreen</tt>, +**! (<link to=Image.color.color.light>light</link>, +**! <link to=Image.color.color.dark>dark</link>, +**! <link to=Image.color.color.bright>bright</link>, +**! <link to=Image.color.color.dull>dull</link> and +**! <link to=Image.color.color.neon>neon</link>). Simply use +**! "method"+"color"; (as in <tt>lightgreen</tt>, **! <tt>dullmagenta</tt>, <tt>lightdullorange</tt>). **! **! see also: Image.color.color->name, Image.color.color->rgb @@ -86,7 +86,7 @@ #include "global.h" #include <config.h> -RCSID("$Id: colors.c,v 1.3 1999/01/24 00:47:33 mirar Exp $"); +RCSID("$Id: colors.c,v 1.4 1999/01/24 01:14:19 mirar Exp $"); #include "config.h" @@ -709,31 +709,31 @@ void image_color_equal(INT32 args) **! <table> **! <tr><th>method</th><th width=50%>effect</th> **! <th>h</th><th>s</th><th>v</th><th>as</th></tr> -**! <tr><td>light </td><td>raise light level</td><td>�0</td><td> �0</td> +**! <tr><td>light </td><td>raise light level</td><td>�0</td><td> �0</td><td>+50</td> **! <td><illustration>return Image.image(20,20,@(array)Image.color["#693e3e"])</illustration> **! <illustration>return Image.image(20,20,@(array)Image.color["#693e3e"]->light())</illustration> **! <illustration>return Image.image(20,20,@(array)Image.color["#693e3e"]->light()->light())</illustration> **! <illustration>return Image.image(20,20,@(array)Image.color["#693e3e"]->light()->light()->light())</illustration></td></tr> **! -**! <tr><td>dark </td><td>lower light level</td><td>�0</td><td> �0</td> +**! <tr><td>dark </td><td>lower light level</td><td>�0</td><td> �0</td><td>-50</td> **! <td><illustration>return Image.image(20,20,@(array)Image.color["#693e3e"])</illustration> **! <illustration>return Image.image(20,20,@(array)Image.color["#693e3e"]->dark())</illustration> **! <illustration>return Image.image(20,20,@(array)Image.color["#693e3e"]->dark()->dark())</illustration> **! <illustration>return Image.image(20,20,@(array)Image.color["#693e3e"]->dark()->dark()->dark())</illustration></td></tr> **! -**! <tr><td>bright</td><td>brighter color </td><td>�0</td><td>+50</td> +**! <tr><td>bright</td><td>brighter color </td><td>�0</td><td>+50</td><td>+50</td> **! <td><illustration>return Image.image(20,20,@(array)Image.color["#693e3e"])</illustration> **! <illustration>return Image.image(20,20,@(array)Image.color["#693e3e"]->bright())</illustration> **! <illustration>return Image.image(20,20,@(array)Image.color["#693e3e"]->bright()->bright())</illustration> **! <illustration>return Image.image(20,20,@(array)Image.color["#693e3e"]->bright()->bright()->bright())</illustration></td></tr> **! -**! <tr><td>dull </td><td>greyer color </td><td>�0</td><td>-50</td> +**! <tr><td>dull </td><td>greyer color </td><td>�0</td><td>-50</td><td>-50</td> **! <td><illustration>return Image.image(20,20,@(array)Image.color.red)</illustration> **! <illustration>return Image.image(20,20,@(array)Image.color.red->dull())</illustration> **! <illustration>return Image.image(20,20,@(array)Image.color.red->dull()->dull())</illustration> **! <illustration>return Image.image(20,20,@(array)Image.color.red->dull()->dull()->dull())</illustration></td></tr> **! -**! <tr><td>neon </td><td>set to extreme </td><td>�0</td><td>max</td> +**! <tr><td>neon </td><td>set to extreme </td><td>�0</td><td>max</td><td>max</td> **! <td><illustration>return Image.image(20,20,@(array)Image.color["#693e3e"])</illustration> **! <illustration>return Image.image(20,20,@(array)Image.color["#693e3e"]->neon())</illustration></td></tr> **! @@ -975,9 +975,8 @@ void image_make_color(INT32 args) **! Creates a new color object from given red, green and blue, **! hue, saturation and value, or greylevel. **! -**! The <ref>html</ref>() -**! method only understands the HTML color names, -**! or the <tt>#rrggbb</tt> form. +**! The <ref>html</ref>() method only understands the HTML color names, +**! or the <tt>#rrggbb</tt> form. It is case insensitive. **! **! returns the created object. */ diff --git a/src/modules/Image/doc-header b/src/modules/Image/doc-header index 33e0f9067d..c045ca6fd7 100644 --- a/src/modules/Image/doc-header +++ b/src/modules/Image/doc-header @@ -15,6 +15,10 @@ **! <td align=left valign=top><ref>Image.colortable</ref></td> **! <td align=left valign=top>Color reduction, quantisation and dither</td> **! </tr> +**! <tr> +**! <td align=left valign=top><ref>Image.color</ref></td> +**! <td align=left valign=top>Color names, objects and conversion</td> +**! </tr> **! <tr></tr><tr></tr><tr></tr> **! <tr> **! <td align=left valign=top></td> -- GitLab