[futurebasic] Re: [FB] Colour Intensity

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

From: Joe Lewis Wilkins <PepeToo@...>
Date: Sat, 23 Oct 1999 21:32:48 -0700
Mel Patrick wrote:

> 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?

Hi Mel,

After setting the components to new RGBs like:

myRGB.red% = aNewRedVal%
myRGB.green% = aNewGreenVal%
myRGB.blue% = aNewBlueVal%

did you then:

CALL RGBFORECOLOR(#@myRGB)

This has worked for me. I don't usually use a percented change to set the
NewColorVals; I give them absolute vaules such as 65535 or 40000 or 0, but I
should imagine that any integer values should work.

Good Luck,
Joe Wilkins