JTF > Demo Gallery > acm.graphics

The acm.graphics Package

This page provides links to several programs that illustrate the use of the acm.graphics package. Clicking on the thumbnail runs the program as an applet. Clicking on the filename downloads the code.
 
FeltBoard.zip
This program draws a red rectangle and a green oval on the screen.
Checkerboard.zip
This program draws a checkerboard.
YarnPattern.zip
This program simulates weaving a pattern with yarn.
YinYang.zip
This program draws the yin/yang symbol.
USFlag.zip
This program uses the acm.graphics package to draw a United States flag.
TimesSquare.zip
This program moves a headline across the canvas.
BouncingBall.zip
This program bounces a ball around the interior of the canvas.
RandomShapes.zip
This program draws a series of random shapes on the screen.
DrawLine.zip
This program allows the user to draw lines by dragging the mouse.
DragObjects.zip
This program allows the user to drag two GObjects around the window.
TShirt.zip
This program draws two draggable T-shirts.
DrawFace.zip
This program draws a face in which the eyes follow the cursor.
Broccoli.zip
This program draws a recursive broccoli flower.
PieChart.zip
This program demonstrates the use of the GArc class to draw pie charts.
TurtleGraphics.zip
This program demonstrates the GTurtle class by drawing a flower.
KochSnowflake.zip
This program draws a Koch fractal snowflake using GPen.