home *** CD-ROM | disk | FTP | other *** search
- Turtle Graphics were what made LOGO popular, yet
- COMAL has had a faster turtle for years! These
- Turtle commands work on all COMALs (note that
- AmigaCOMAL includes many more Graphics
- commands):
-
- BACK : move turtle backwards
- back(length)
- back(50)
-
- BACKGROUND : set screen background color
- background(color number)
- background(2)
-
- CLEAR : clear the graphics screen
- clear // also can use clearscreen
-
- DRAWTO : draw a line from current point
- drawto(x coord,y coord)
- drawto(50,80)
-
- FILL : fills in area with current color
- fill(x coord,y coord)
- fill(50,80)
-
- FORWARD : move turtle forward
- forward(length)
- forward(100)
-
- GETCOLOR : returns color of specified pixel
- getcolor(x coord,y coord)
- print getcolor(50,80)
-
- GRAPHICSCREEN : turn on graphic screen
- graphicscreen(mode) //Power Driver use:
- graphicscreen(0) //SETGRAPHIC(mode)
-
- HIDETURTLE : make turtle invisible
- hideturtle
-
- HOME : put the turtle in its home position
- home
-
- LEFT : turn turtle left
- left(degrees)
- left(90) // a right angle
-
- MOVETO : move to loc without line
- moveto(x coord,y coord)
- moveto(50,80)
-
- PENCOLOR : set turtle drawing color
- pencolor(color number)
- pencolor(2)
-
- PENDOWN : put pen down, turtle draws
- pendown
-
- PENUP : pick pen up, turtle does not draw
- penup
-
- PLOT : plot a point in current color
- plot(x coord,y coord)
- plot(50,80)
-
- PLOTTEXT : put text on graphics screen
- plottext(x coord,y coord,text$)
- plottext(0,24,"press space to continue")
-
- RIGHT : turn turtle right
- right(degrees)
- right(180) // reverse direction
-
- SETHEADING : set turtle heading
- setheading(degrees)
- setheading(180)
-
- SETXY : set turtle x, y coordinates
- setxy(x coord,y coord)
- setxy(50,80)
-
- SHOWTURTLE : make turtle visible
- showturtle
-
- TEXTSCREEN : turn on text screen
- textscreen //Power Driver use SETTEXT
-
- TURTLESIZE : set turtle size (0 to 10)
- turtlesize(size)
- turtlesize(6)
-