Chapter 4 Vocab Flashcards
1
Q
Open Window
A
GraphWin (title, width, height)
2
Q
Background color
A
setBackground (color)
3
Q
close the window
A
close()
4
Q
get data from mouse click
A
getMouse ()
5
Q
get data from keyboard
A
getKey ()
6
Q
Fill an object with color
A
setFill (color)
7
Q
set an outline for object
A
setOutline (color)
8
Q
move an object
A
move (dx, dy)
9
Q
make a copy of an object
A
clone ()
10
Q
Make a point on the graph
A
Point (x, y)
11
Q
Return the center of line
A
getCenter ()
12
Q
Make a circle
A
Circle (center point, radius)
13
Q
Make a rectangle (square)
A
Rectangle (point1, point2)
14
Q
Make an Oval
A
Oval (point1, point2)
15
Q
Construct a polygon
A
Polygon (point1, point2, point3)