Go, go, go... here is the first final version of my Fire Applet! As you
see, it's getting hotter and hotter... : )
So (1+0+2+5+5+6+8+8)/8 = 35/8 = 4 (without remainder). We then place it one line higher in the new image:
2. The colors or palette A color exists of 3 color 'parts': Red, Green and Blue. If you want a fire-like color palette, mostly you want to begin with black, then to red, then to orange, yellow, bright yellow and finally white. This is in a increasing order of temperature (coz the value of every point stands for the temperature of the point). 1. Let the Red part increase to it's maximum 2. Add an increasing Green part 3. Add an increasing Blue part When you increase the Green part while increasing the Red part, it will cause the palette to be less Red biased. So then there will be no pure red and the orange colors will overrule the red colors much faster. Let's take a look The source: FireApplet.java Get the AnimatedApplet here A 'doubled' version is here, the pixels are 2 times as big in both directions.
|