[elinks-dev] Re: [Patch] rgb and hsl color converters

Petr Baudis pasky at ucw.cz
Mon Oct 6 04:02:40 PDT 2003


Dear diary, on Mon, Oct 06, 2003 at 12:34:56PM CEST, I got a letter,
where Jonas Fonseca <fonseca at diku.dk> told me, that...
> Stolen from gimp, elinksified by Zas and minor cleanup by me.

It looks fine as is, it's hard to judge if there's no user for this
stuff yet, though ;-).

> Index: util/color.c
> ===================================================================
> RCS file: /home/cvs/elinks/elinks/src/util/color.c,v
> retrieving revision 1.2
> diff -u -d -r1.2 color.c
> --- util/color.c	29 Aug 2003 17:28:46 -0000	1.2
> +++ util/color.c	6 Oct 2003 10:29:30 -0000
..snip..
> Index: util/color.h
> ===================================================================
> RCS file: /home/cvs/elinks/elinks/src/util/color.h,v
> retrieving revision 1.3
> diff -u -d -r1.3 color.h
> --- util/color.h	31 Aug 2003 12:48:36 -0000	1.3
> +++ util/color.h	6 Oct 2003 10:29:30 -0000
> @@ -21,6 +21,11 @@
>  	unsigned char pad;
>  };
>  
> +struct hsl {
> +	unsigned char hue, saturation, lightness;
> +	unsigned char pad;
> +};
> +

What's the @pad thing for, BTW?

-- 
 
				Petr "Pasky" Baudis
.
To get something done, a committee should consist of no more than three
persons, two of them absent.
.
Stuff: http://pasky.ji.cz/



More information about the elinks-dev mailing list