I'm attempting to get various tones of red and orange into circles that lay on top of each other and gradually get smaller the further towards the center of the object i am. How do I do this? Anyone care to share code (I'm working in Processing, not Java). I'm new to processing (oh and read but cant write Finnish properly - sorry) and would like to compare what I wrote w your code. Thanks.
processing
confused
1141
0Äänestä
Muut lukivat myös
Odottaa vastausta
Näihin keskusteluihin ei ole vielä vastattu. Ole ensimmäinen.
Vastaukset 1
Vanhimmat
What's the problem? If you want to get red/orange colors with different hue/saturation/brightness you can use Color.getHSBColor
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Color.html#getHSBColor(float, float, float)
Circles are drawn with Graphics.drawOval
http://java.sun.com/j2se/1.5.0/docs/api/index.html?java/awt/Color.html
Java hue: http://mindprod.com/jgloss/hsb.html