Andreas Rønning wrote:
I'm building a temperature grid in a 2d array, where i'd like to build some kind of smooth gradient based on the entire map.

For instance this map can start red in the top left, fade to a cool blue near the center, then flare into red again off to the right, while everything else becomes a green tinted blue.

As is i could use the drawing api to draw colored blocks to give the impression of such a map, but ideally i'd be able to smooth out the values with gradients, because the map is really quite low res.

Anyone got any ideas for this?

- Andreas
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



How about if you still used the drawing api to draw boxes but you spread your boxes out like the "black" squares on a chess board as pass one. Then for pass two you fill in the "white" squares on a chess board with a gradient square using the colors bordering north, south , east and west as start and end colors for two layered gradients. One running north-south and the other running east-west.

JOR

___________________________________
===  James O'Reilly
===
===  SynergyMedia, Inc.
===  www.synergymedia.net

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to