Art in Code?
May. 1st, 2002 04:42 pmyep, 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?
no subject
Date: 2002-05-02 08:43 am (UTC)