On Jan 7, 2007, at 8:02 AM, Emile SCHWARZ wrote:

Hi all,


REALbasic 2007 Release 1
Mac OS X 10.4.8

Sorry for the not so clear subject. The problem is simple, but I do not know by which side I can handle it!

Say I want to draw a color gradiant (shade of colors) from RGB (255,127,0) to RGB(0,127,255) [I put arbitrary RGB values here since this can be the case: I ask the user the start and end colors and (s)he can place &c000000 or click on a Canvas rect to choose a color in the OS palettes]

How can I do that ?

Doing a simple shade of colors from say RGB(255,0,0) to RGB (0,255,0) can be considered as simple (I start to decrease the .Red atom from 255 and start to increase the .Green atom from 0).

But for "complex colors", I'm short of ideas.

And I do not talked about the steps (say draw that in 30 lines!)...

Every help will be received with joy and smile will rose my face at reading time :)

I have an example that shows several ways to create and use a Color Chart. It only uses the 216 "Web Safe" colors but could be modified.

Example size = 64 KB Stuffed or 100 KB zipped (Archived).

Let me know if you are interested.

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to