1 # Draw some simple shapes
2 puts "Drawing some basic shapes"
4 catch { load ./simple[info sharedlibextension] simple}
6 set cmap [new_ColorMap]
7 set f [new_FrameBuffer 400 400]
10 FrameBuffer_clear $f $BLACK
13 FrameBuffer_box $f 40 40 200 200 $RED
16 FrameBuffer_circle $f 200 200 40 $BLUE
19 FrameBuffer_line $f 10 390 390 200 $GREEN
21 # Write an image out to disk
22 FrameBuffer_writeGIF $f $cmap image.gif
23 puts "Wrote image.gif"