week 12 graphic with animation Flashcards

1
Q

turtle.addshape(“image.gif”)

A

add your image as a shape, turtle graphics only uses .gif

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

start point / end point

A

list of numbers that specify coordinates of start/end

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

using multiple turtles

A

just repeat the add turtle process

moose = turtle.Turtle()
moose.penup()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

make screen background image

A

s.bgpic(“pink1.gif”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

adding data

A

load data with readlines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

starting turtle environment

A

import turtle as t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

t.forward(100)

A

sends turtle forward 100 steps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

t.left(120)

A

sends turtle left 120 steps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

clearscreen()

A

starts new graphic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

t.color(‘red’)

A

changes line color to red

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

t.fillcolor(‘yellow’)

A

changes fill color to yellow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

begin_fill()/end_fill()

A

turns fill on/off

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

turtle parameters

A

usually the distance as a float/int but can also be color, speed, etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

t.goto(x, y=None)

A

sends turtle to coordinate (x,y)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

t.circle(radius, extent = None, steps = None)

A

turtle draws circle of radius and extent in specified number of steps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

extent (circle function)

A

angle

17
Q

steps (circle function)

A

number of steps used

18
Q

t.dot(size=None, *color)

A

turtle draws dot of specified size and color

19
Q

t.undo()

A

turtle undoes most recent turtle graphics action

20
Q

t.speed(speed = None)

A

speed is integer 0-10, specified drawing speed of turtle

21
Q

still graphic

A

no live drawing, use tracer function to turn the drawing off

22
Q

turtle.tracer(False)

A

turns tracer off, no live drawing

23
Q

turtle.tracer(True)

A

turns tracer on, live drawing/animation

24
Q

turtle.mainloop()

A

must be called to show image but comment out before submitting to prevent IL

25
Q

animation

A

turn on the tracer function. control speed using t.speed()