Problems with colors

Andreas Fedrizzi <[email protected]> Fri, 22 Jul 2005 11:43:48 +0200
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
You will not see this in a MIME-aware mail reader.
--===============1378347719==
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

Hi

I am developing a cellular automata where every patch has an opinion repres=
ented by a value between 0 and 9. Now I want to visualize the opinion by se=
tting the color to lighter or deeper degrees of grren. To do that I use the=
 following expression:

self set-color to (0.0, opinion*25.0, 0.0).

But for every opinion-value between 1 and 9 the green is the same. Except w=
hen the opinion is 0, then the cell turns black.
I then tested the colors by directly assigning values. It turned out that f=
or example (10, 0, 0) and (255, 0, 0) look the same and colors like (10, 20=
, 255) for example are completely white.

What am I doing wrong?

Best regards
Andreas Fedrizzi
Technical University Munich

--=20

--===============1378347719==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve

--===============1378347719==--