the one and only truly amazing katster (katster) wrote,
the one and only truly amazing katster
katster

  • Mood:
  • Music:

Art in Code?

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?

Subscribe

  • you don't need to say a word

    “Preach the Gospel at all times. When necessary, use words." --attributed to St. Francis of Assisi The other day, Fred Clark of slacktivist put…

  • (no subject)

    It's my birthday. I was going to write something, but it doesn't want to come out. Maybe tomorrow. This entry was originally posted at…

  • very picky vampires

    For those who weren't aware, my mother has leukemia. Again. She went through two bouts of leukemia in 2001 and 2004, the latter ending in a stem cell…

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 1 comment