File tree Expand file tree Collapse file tree 3 files changed +22
-21
lines changed
TeachingKidsProgramming/src
org/teachingkidsprogramming/section04mastery Expand file tree Collapse file tree 3 files changed +22
-21
lines changed Original file line number Diff line number Diff line change 1+ package org .teachingkidsprogramming .section04mastery ;
2+
3+ public class BackgroundPhoto
4+ {
5+ public static void main (String [] args )
6+ {
7+ // Make the tortoise go as fast as possible --#3
8+ // Set the current picture to this url "http://img2.timeinc.net/ew/dynamic/imgs/101110/sonny-cher_240.jpg" --#7.1
9+ // Set the background image to the current picture--#7.2
10+ // Set the current side to 2 pixels long --#4.1
11+ // Do the following 75 times --#2
12+ // Set the current pen color to crimson --#8.1
13+ // Use the current pen color for the line the tortoise draws --#8.2
14+ // Increase the length of a side by 1 pixel --#5
15+ // Move the tortoise the length of the current side --#4.2
16+ // Set the X position of the tortoise to 555 pixels --#4.3
17+ // Set the Y position of the tortoise to 65 pixels --#4.4
18+ // Turn the tortoise 1/3rd of 360 degrees to the right --#1
19+ // Turn the tortoise 1 more degree --#6
20+ // Repeat
21+ }
22+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments