|

CyberSlug Rules!
Classes
Class
Syllabus
Grading Policy
Labs
Interact
Login
-
enter system
-
get attendance
-
submit work
-
take lab quiz
-
check scores
Help
Help me!
Links
Staff only
Datacare Ahshay
| |
Statements
- Graphics
- PaintRect (T, L, B, R);
- T = top, L = left, B = bottom, R =
right coordinate
- 0,0 at top left of
screen
- x axis increasing to
left
- y axis increasing down
- PaintRect (100, 0, 200,
200);
- paints a rectangle
- starts at 100, 0
- extends to 200, 200
- thus 200 wide, 100 high
Other graphic statements
- PaintRect (T, L, B, R);
- PaintOval (T, L, B, R);
- EraseRect (T, L, B, R);
- EraseOval (T, L, B, R);
- FrameRect (T, L, B, R);
- FrameOval (T, L, B, R);
- PenPat (Gray);
- White
- ltGray
- Gray
- dkGay
- Black
- MoveTo (h, v);
- LineTo (h, v);
- h -- horizontal
- v -- vertical
|