Download presentation
Presentation is loading. Please wait.
Published byErin Joyce Modified over 11 years ago
1
Graphics in Turing
2
(0,0) (maxx,maxy) Variables that do not have to be declared that give you the maximum value for your x and y co-ordinates. (maxx,0) (0,maxy)
3
What are maxx and maxy? They will be whatever you set them at DEFAULTS Maxx 639 Maxy 399 --- setscreen ("graphics:max;max,nobuttonbar") Setscreen (nocursor) turns off input cursor Setscreen (noecho) does not show letters as you type
4
(0,0) Maxx=639 Maxy=399 drawline(x1,y1,x2,y2,color)
5
(0,0) Maxx=639 Maxy=399 Drawoval(x,y,xr,yr,color)
6
(0,0) Maxx=639 Maxy=399 drawbox(x1,y1,x2,y2,color)
7
(0,0) Maxx=639 Maxy=399 drawstar(x1,y1,x2,y2,color)
8
(0,0) Maxx=639 Maxy=399 drawmapleleaf(x1,y1,x2,y2,color)
9
(0,0) Maxx=639 Maxy=399 drawarc(x,y,xr,yr,ia,fa,color)
10
(0,0) Maxx=639 Maxy=399 drawfilloval(x,y,xr,yr,color1)
11
(0,0) Maxx=639 Maxy=399 drawfillbox(x1,y1,x2,y2,color)
12
(0,0) Maxx=639 Maxy=399 drawfillstar(x1,y1,x2,y2,color)
13
(0,0) Maxx=639 Maxy=399 drawfillmapleleaf(x1,y1,x2,y2,color)
14
(0,0) Maxx=639 Maxy=399 drawdot(x,y,color)
15
(0,0) Maxx=639 Maxy=399 drawfillarc(x,y,xr,yr,ia,fa,color)
16
(0,0) Maxx=639 Maxy=399 Drawfill(x,y,color1,color2) Drawfill Used for triangles and other odd shapes that you make. This will let you colour them in.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.