Hi, i''m new to java. I know that java 1.2 has a builtin method in graphics2d to create a gradient given two colors, but I was wondering how it could be done in 1.0, thanks.
[java] color gradients
Started by nap410, Aug 18 2000 09:10 AM
1 reply to this topic
Sponsor:
#2 Members - Reputation: 122
Posted 18 August 2000 - 11:12 AM
Hi;
Unfortunately, their is no built method for gradient filling in the Java 1.0 graphics classes (none that I've come across anyway), so you will have to do it manually. Say you want to go from black to blue.
From this code you could apply different colors and such. Of course this is not the only way to do it,but it's all i've ever needed.
Hope this helped (a little
).
=============================
silly programmer vb is for kids.
============================
www.thejpsystem.com
Edited by - loserkid on August 18, 2000 6:13:33 PM
Unfortunately, their is no built method for gradient filling in the Java 1.0 graphics classes (none that I've come across anyway), so you will have to do it manually. Say you want to go from black to blue.
|
From this code you could apply different colors and such. Of course this is not the only way to do it,but it's all i've ever needed.
Hope this helped (a little
=============================
silly programmer vb is for kids.
============================
www.thejpsystem.com
Edited by - loserkid on August 18, 2000 6:13:33 PM






