Skip to content
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4dc1819
Updated from Brython Server: 1/28/2019 12:48:25 PM
waSclthu11 Jan 28, 2019
87c7bb0
Updated from Brython Server: 1/28/2019 12:50:52 PM
waSclthu11 Jan 28, 2019
027b2e0
Updated from Brython Server: 1/28/2019 12:53:21 PM
waSclthu11 Jan 28, 2019
990595a
Updated from Brython Server: 1/28/2019 12:55:58 PM
waSclthu11 Jan 28, 2019
03c10ba
Updated from Brython Server: 1/28/2019 12:56:41 PM
waSclthu11 Jan 28, 2019
3f2931a
Updated from Brython Server: 1/28/2019 12:58:14 PM
waSclthu11 Jan 28, 2019
8914047
Updated from Brython Server: 1/28/2019 1:00:23 PM
waSclthu11 Jan 28, 2019
217f32e
Updated from Brython Server: 1/28/2019 1:01:22 PM
waSclthu11 Jan 28, 2019
a1bc637
Updated from Brython Server: 1/28/2019 1:05:22 PM
waSclthu11 Jan 28, 2019
227d5a7
Updated from Brython Server: 1/28/2019 1:05:27 PM
waSclthu11 Jan 28, 2019
d4b0a54
Updated from Brython Server: 1/28/2019 2:09:08 PM
waSclthu11 Jan 28, 2019
7df2ce5
Updated from Brython Server: 1/28/2019 2:19:44 PM
waSclthu11 Jan 28, 2019
f4d04a7
Updated from Brython Server: 1/28/2019 2:45:29 PM
waSclthu11 Jan 28, 2019
5d17cbf
Updated from Brython Server: 1/28/2019 2:51:04 PM
waSclthu11 Jan 28, 2019
459a946
Updated from Brython Server: 1/28/2019 2:51:53 PM
waSclthu11 Jan 28, 2019
e526fe8
Updated from Brython Server: 1/29/2019 12:02:40 PM
waSclthu11 Jan 29, 2019
5eeaab6
Updated from Brython Server: 1/29/2019 12:03:29 PM
waSclthu11 Jan 29, 2019
8113aeb
Updated from Brython Server: 1/29/2019 12:33:18 PM
waSclthu11 Jan 29, 2019
46af7c4
Updated from Brython Server: 1/29/2019 12:34:36 PM
waSclthu11 Jan 29, 2019
0789a09
Updated from Brython Server: 1/29/2019 12:44:01 PM
waSclthu11 Jan 29, 2019
d68b107
Updated from Brython Server: 1/29/2019 2:03:06 PM
waSclthu11 Jan 29, 2019
f9847e7
Updated from Brython Server: 1/29/2019 2:04:05 PM
waSclthu11 Jan 29, 2019
1fc9aad
Updated from Brython Server: 1/29/2019 2:05:50 PM
waSclthu11 Jan 29, 2019
85007a7
Updated from Brython Server: 1/29/2019 2:10:24 PM
waSclthu11 Jan 29, 2019
5755112
Updated from Brython Server: 1/29/2019 2:15:35 PM
waSclthu11 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
46 changes: 43 additions & 3 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: waSclthu11
Credit: The tutorial and the ggame core API (tells you how to use everything).

Assignment:

Expand All @@ -24,9 +24,49 @@
for detailed information on ggame.

"""
from ggame import App, Color, LineStyle, Sprite, RectangleAsset, CircleAsset, EllipseAsset, PolygonAsset
from ggame import App, Color, LineStyle, Sprite, RectangleAsset, CircleAsset, EllipseAsset, PolygonAsset, TextAsset
app = App()

# add your code here \/ \/ \/
wah = Color(0xedcc9b, 1.0)
purple= Color(0xce27d3, 1.0)
white = Color(0xffffff, 1.0)
black = Color(0x000000, 1.0)
blue = Color(0x00ffff, 1.0)
wahh = Color(0xffb6c1, 1.0)
thinline = LineStyle(1, black)
noline = LineStyle(0, white)
print("BEHOLD, Waluigi!")
eyeshadow = EllipseAsset(25, 15, thinline, blue)
eye = EllipseAsset(25, 15, thinline, white)
face = EllipseAsset(100, 100, noline, wah)
rectangle = RectangleAsset(50, 20, thinline, purple)
hat = EllipseAsset(100, 70, thinline, purple)
nose = EllipseAsset(20, 40, thinline, wahh)
chin = PolygonAsset([(-45, 60), (-70, 0), (70, 0), (45, 60)], noline, wah)
www = PolygonAsset([(-10, 70), (-45, 0), (-45, -50), (-40, -50), (-40, 0), (40, 0), (40, -50), (45, -50), (45, 0), (10, 70)], noline, wah)
dot = CircleAsset(7, thinline, black)
stache = PolygonAsset([(-100, 0), (-50, 10), (0, 0), (50, 10), (100, 0), (50, 30), (0, 10), (-50, 30), (-100, 0)])
logo = CircleAsset(35, noline, white)
A = TextAsset("L", style="bold 40pt Arial", width=250, fill=Color(0x1122FF, 1.0))


Sprite(chin, (316, 290))
Sprite(face, (289, 120))
Sprite(eyeshadow, (305, 230))
Sprite(eyeshadow, (420, 230))
Sprite(eye, (305, 225))
Sprite(eye, (420, 225))
Sprite(hat, (290, 100))
Sprite(www, (342, 345))
Sprite(nose, (367, 235))
Sprite(dot, (325, 230))
Sprite(dot, (435, 230))
Sprite(stache, (285, 330))
Sprite(logo, (353, 150))
Sprite(A, (353, 150))




# add your code here /\ /\ /\
Expand Down