[futurebasic] Re : [FB] Colour Intensity

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 1999 : Group Archive : Group : All Groups

From: "jonathan" <jonnnathan@...>
Date: Sun, 24 Oct 1999 13:21:26 +0200
> I am trying to control the colour intensity (roughly the same colour, 
> just lighter or darker) for drawing.
>
> Just taking a percentage of the RGB colour and either adding or
> subtracting doesn't seem to make the colour lighter or darker.
>
> Anyone done this sort of thing?

Yep, in my apps 'ShadowBox' and 'WebLoupe' - go to my home page at:
<http://perso.francenet.fr/~jonathan/>
for the apps:
(I'll be mirroring this site at:
<http://www.thePowerFactory.com/jonathan/>
soon as officially I've closed the first account
but the provider has forgotten to kill me!)

Anyway: I converted RGB to HSV then alter the V component by the percentage
that I need... then convert back to RGB. The hardest part is moving
percentages to parts of 256 and back!

For you Mel, this'll take all of 10 minutes!

:-j
(resident unkilled color gnome)