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?

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

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. 16th, 2026 03:27 am
Powered by Dreamwidth Studios