Day 1:
Scratch
ualr_-_p1_-_level_1_quest_-_mark_mccorkle.sb3 | |
File Size: | 49 kb |
File Type: | sb3 |
chrome_dino_files.zip | |
File Size: | 28 kb |
File Type: | zip |
Jump Code Blocks
Day 2: Python - Turtle
Example 1:
|
import turtle Carl = turtle.Turtle() Carl.speed(3) Carl.shape("turtle") Carl.fillcolor("green") Carl.begin_fill() Carl.forward(150) Carl.left(90) Carl.forward(150) Carl.left(90) Carl.forward(150) Carl.left(90) Carl.forward(150) Carl.end_fill() |
Example 2:
|
import turtle turtle.bgcolor("purple") Steve = turtle.Turtle() Steve.fillcolor("blue") Steve.begin_fill() for i in range(4): Steve.forward(100) Steve.left(90) Steve.forward(100) Steve.left(90) Steve.forward(100) Steve.left(90) Steve.forward(100) Steve.left(30) Steve.forward(100) Steve.end_fill() |
Example 3:
|
import turtle JimmyFallon = turtle.Turtle() JimmyFallon.shape("turtle") JimmyFallon.shapesize(0.5,0.5,0.5) JimmyFallon.speed(0) for i in range(50): JimmyFallon.pencolor("black") JimmyFallon.right(91) JimmyFallon.fd(i%2 * 50) JimmyFallon.circle(5) for i in range(50): JimmyFallon.pencolor("red") JimmyFallon.right(111) JimmyFallon.fd(i%2 * 50) JimmyFallon.circle(5) |
Example 4:
|
import turtle sc = turtle.Screen() sc.setup(600, 600, startx = 2000, starty = -400) turtle.bgcolor("black") turtle.pensize(200) turtle.speed(0) for i in range(6): for colors in ["red", "magenta", "blue", "cyan", "green", "yellow", "white"]: turtle.color(colors) turtle.circle(250) turtle.left(50) turtle.pensize(2) for i in range(6): for colors in ["red", "magenta", "blue", "cyan", "green", "yellow", "white"]: turtle.color(colors) turtle.circle(100) turtle.left(10) turtle.hideturtle() |