Skip to content

Commit 90d82bb

Browse files
committed
write new recipe BackgroundPhoto w/Samantha
1 parent 126579e commit 90d82bb

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed
0 Bytes
Binary file not shown.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
}

TeachingKidsProgramming/src/org/teachingkidsprogramming/section04mastery/WaterMark.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)