Skip to content
Open
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
7d560ea
Updated from Brython Server: 1/28/2019 2:42:41 PM
anEndrel23 Jan 28, 2019
3c0809d
Updated from Brython Server: 1/28/2019 2:50:05 PM
anEndrel23 Jan 28, 2019
292dc66
Updated from Brython Server: 1/29/2019 10:10:51 AM
anEndrel23 Jan 29, 2019
5e54d8b
Updated from Brython Server: 1/29/2019 10:11:00 AM
anEndrel23 Jan 29, 2019
c2128ce
Updated from Brython Server: 1/29/2019 10:12:00 AM
anEndrel23 Jan 29, 2019
babcccc
Updated from Brython Server: 1/29/2019 2:09:24 PM
anEndrel23 Jan 29, 2019
cc4b701
Updated from Brython Server: 1/29/2019 2:12:06 PM
anEndrel23 Jan 29, 2019
a45c135
Updated from Brython Server: 1/29/2019 2:12:13 PM
anEndrel23 Jan 29, 2019
c9e125d
Updated from Brython Server: 1/29/2019 2:13:41 PM
anEndrel23 Jan 29, 2019
3b8cccf
Updated from Brython Server: 1/29/2019 2:13:54 PM
anEndrel23 Jan 29, 2019
b77f36a
Updated from Brython Server: 1/29/2019 2:15:07 PM
anEndrel23 Jan 29, 2019
83d9ad8
Updated from Brython Server: 1/29/2019 2:16:02 PM
anEndrel23 Jan 29, 2019
78f9717
Updated from Brython Server: 1/29/2019 2:18:40 PM
anEndrel23 Jan 29, 2019
30371d8
Updated from Brython Server: 1/29/2019 2:19:15 PM
anEndrel23 Jan 29, 2019
e21a057
Updated from Brython Server: 1/29/2019 2:22:27 PM
anEndrel23 Jan 29, 2019
8acef4d
Updated from Brython Server: 1/29/2019 2:24:43 PM
anEndrel23 Jan 29, 2019
186013a
Updated from Brython Server: 1/29/2019 2:26:28 PM
anEndrel23 Jan 29, 2019
44b7d85
Updated from Brython Server: 1/29/2019 2:28:51 PM
anEndrel23 Jan 29, 2019
3ad5762
Updated from Brython Server: 1/29/2019 2:31:03 PM
anEndrel23 Jan 29, 2019
2440023
Updated from Brython Server: 1/29/2019 2:32:59 PM
anEndrel23 Jan 29, 2019
eca9049
Updated from Brython Server: 1/29/2019 2:34:25 PM
anEndrel23 Jan 29, 2019
33efa34
Updated from Brython Server: 1/29/2019 2:35:26 PM
anEndrel23 Jan 29, 2019
4d456fb
Updated from Brython Server: 1/29/2019 2:39:18 PM
anEndrel23 Jan 29, 2019
3540ae4
Updated from Brython Server: 1/29/2019 2:41:07 PM
anEndrel23 Jan 29, 2019
c08c195
Updated from Brython Server: 1/29/2019 2:41:48 PM
anEndrel23 Jan 29, 2019
5bad05a
Updated from Brython Server: 1/29/2019 2:42:21 PM
anEndrel23 Jan 29, 2019
3fab050
Updated from Brython Server: 1/29/2019 2:42:54 PM
anEndrel23 Jan 29, 2019
2547e52
Updated from Brython Server: 1/29/2019 2:47:43 PM
anEndrel23 Jan 29, 2019
520d963
Updated from Brython Server: 1/29/2019 2:49:48 PM
anEndrel23 Jan 29, 2019
900482a
Updated from Brython Server: 1/29/2019 2:51:41 PM
anEndrel23 Jan 29, 2019
0aadc43
Updated from Brython Server: 1/29/2019 2:55:01 PM
anEndrel23 Jan 29, 2019
ebd6a39
Updated from Brython Server: 1/29/2019 2:55:35 PM
anEndrel23 Jan 29, 2019
c8f1b33
Updated from Brython Server: 1/29/2019 2:56:17 PM
anEndrel23 Jan 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 56 additions & 4 deletions picture.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
picture.py
Author: <your name here>
Credit: <list sources used, if any>
Author: Andrew Enelow
Credit: stack overflow, brython server, trinket.io, [Alec, Matt (Not for code)]

Assignment:

Expand All @@ -26,11 +26,63 @@
"""
from ggame import App, Color, LineStyle, Sprite, RectangleAsset, CircleAsset, EllipseAsset, PolygonAsset

# add your code here \/ \/ \/
red = Color(0xff0000, 1.0)
green = Color(0x00ff00, 1.0)
blue = Color(0x0000ff, 1.0)
black = Color(0x000000, 1.0)
yellow = Color(0xFFFF00, 1.0)
skyblue = Color(0x87CEEB, 1.0)
grey = Color(0x696969, 1.0)
brick = Color(0xA52A2A, 1.0)
khaki = Color(0xF0E68C, 1.0)

thinline = LineStyle(1, black)

# add your code here /\ /\ /\
sky = RectangleAsset(1500, 500, thinline, skyblue)

sun = CircleAsset(50, thinline, yellow)

grass = RectangleAsset(1500, 100, thinline, green)

roof = PolygonAsset([(0,100), (200,0), (400,100), (0,100)], thinline, grey)

house = RectangleAsset(300, 300, thinline, khaki)

pond = EllipseAsset(50, 20, thinline, blue)

polygon = PolygonAsset([(0,0), (50,50), (50,100), (0,0)], thinline, red)

chim = RectangleAsset(50, 125, thinline, brick)

door = RectangleAsset(100, 175, thinline, brick)

window = RectangleAsset(25, 50, thinline, black)

knob = CircleAsset(5, thinline, khaki)

Sprite(sky, (0, 0))

Sprite(sun, (50, 50))

Sprite(grass, (0, 500))

Sprite(house, (500, 200))

Sprite(chim, (725, 75))

Sprite(roof, (450, 100))

Sprite(pond, (850, 525))

Sprite(door, (600, 325))

Sprite(window, (620, 350))

Sprite(window, (655, 350))

Sprite(knob, (680, 425))

myapp = App()
myapp.width = 1600
myapp.height = 900
myapp.run()