{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lecture 7 Notes

# 1 if remk21 drawstar00rm else drawstar00ry end r

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: star with center (0,0) Star Array Insight Through Compu,ng Nested Stars PaintBall Insight Through Compu,ng Draw nested sequence of yellow and magenta stars, each with center (0,0) and radius reduced by a factor of 1.2. Stop when radius <= .1 6 2/13/14 Preliminary Notes Star #1 : DrawStar(0,0,1,’m’) Star #2 : DrawStar(0,0,1/1.2,’y’) Star #3 : DrawStar(0,0,1/(1.2)^2,’m’) Star #4 : DrawStar(0,0,1/(1.2)^3,’y’) Insight Through Compu,ng Preliminary Notes R = 1 Star #1 : DrawStar(0,0,R,’m’) R = R/1.2 Star #2 : DrawStar(0,0,R,’y’) R = R/1.2 Star #3 : DrawStar(0,0,R,’m’) R = R/1.2 Star #4 : DrawStar(0,0,R,’y’) Insight Through Compu,ng Pseudocode Draw the Black Square R = 1; k = 1; Repeat while R > 0.1 Draw the k- th star Update R and k Insight Through Compu,ng Reﬁnement D...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online