katster: (legome)
[personal profile] katster

yep, we had to draw logos using java code.

g.setColor(Color.red);
   int[] x = new int[3];
   x[0]=100;
   x[1]=110;
   x[2]=120;
   int[] y = new int[3];
   y[0]=220;
   y[1]=200;
   y[2]=220;
   g.fillPolygon(x,y,3);

that's all the code I needed to draw a triangle. See what I created at http://www.retstak.org/rainbow.html (opens a Java applet) or read the code at http://www.retstak.org/AppletCh11b.java

who says techies can't do art?

Date: 2002-05-02 08:43 am (UTC)
From: [identity profile] kaosfury.livejournal.com
Cool! I didn't know you could do that. But then again, I quit trying to learn Java a while ago. My brain just couldn't take all the input from outside sources and integrate new learning at the time.

Note

My main blog is kept at retstak.org. I mirror posts to this Dreamwidth account, so feel free to read and comment either here or there.

November 2020

S M T W T F S
1234 567
891011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 15th, 2026 05:18 pm
Powered by Dreamwidth Studios