Skip to content
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
ad492b9
Updated from Brython Server: 1/28/2019 2:32:47 PM
miViriaz15 Jan 28, 2019
c136ae7
Updated from Brython Server: 1/28/2019 2:47:53 PM
miViriaz15 Jan 28, 2019
6c096cf
Updated from Brython Server: 1/28/2019 2:54:26 PM
miViriaz15 Jan 28, 2019
56c2622
Updated from Brython Server: 1/28/2019 2:55:49 PM
miViriaz15 Jan 28, 2019
57a3d1d
Updated from Brython Server: 1/28/2019 2:57:22 PM
miViriaz15 Jan 28, 2019
b0598d2
Updated from Brython Server: 1/28/2019 3:03:21 PM
miViriaz15 Jan 28, 2019
c83b69d
Updated from Brython Server: 1/28/2019 3:06:52 PM
miViriaz15 Jan 28, 2019
7836436
Updated from Brython Server: 1/28/2019 3:09:49 PM
miViriaz15 Jan 28, 2019
2eb36d1
Updated from Brython Server: 1/28/2019 3:11:14 PM
miViriaz15 Jan 28, 2019
8b08860
Updated from Brython Server: 1/28/2019 3:12:42 PM
miViriaz15 Jan 28, 2019
e930cf6
Updated from Brython Server: 1/28/2019 3:12:51 PM
miViriaz15 Jan 28, 2019
6e8b88d
Updated from Brython Server: 1/28/2019 3:13:25 PM
miViriaz15 Jan 28, 2019
64690a9
Updated from Brython Server: 1/28/2019 3:42:56 PM
miViriaz15 Jan 28, 2019
206f961
Updated from Brython Server: 1/28/2019 3:48:56 PM
miViriaz15 Jan 28, 2019
e687b05
Updated from Brython Server: 1/28/2019 3:50:26 PM
miViriaz15 Jan 28, 2019
9381c40
Updated from Brython Server: 1/28/2019 3:56:47 PM
miViriaz15 Jan 28, 2019
32f7713
Updated from Brython Server: 1/28/2019 4:04:04 PM
miViriaz15 Jan 28, 2019
f03a2de
Updated from Brython Server: 1/28/2019 4:07:36 PM
miViriaz15 Jan 28, 2019
1bfd24e
Updated from Brython Server: 1/28/2019 4:10:44 PM
miViriaz15 Jan 28, 2019
42a638b
Updated from Brython Server: 1/28/2019 4:15:30 PM
miViriaz15 Jan 28, 2019
e79648a
Updated from Brython Server: 1/28/2019 4:16:45 PM
miViriaz15 Jan 28, 2019
68d3d08
Updated from Brython Server: 1/28/2019 4:17:28 PM
miViriaz15 Jan 28, 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
68 changes: 65 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: miViriaz15
Credit: I used the internet for drawing inspiration, https://www.rapidtables.com/web/color/html-color-codes.html for color codes

Assignment:

Expand All @@ -25,10 +25,72 @@

"""
from ggame import App, Color, LineStyle, Sprite, RectangleAsset, CircleAsset, EllipseAsset, PolygonAsset

from math import sqrt
# add your code here \/ \/ \/
#defining colors
cornflowerblue = Color(0x6495ED, 1.0)
black = Color(0x000000, 1.0)
white = Color(0xFFFFFF, 1.0)
gold = Color(0xFFD700, 1.0)
golder = Color(0xFFC900, 1.0)

#defining line
thinlineblue = LineStyle(1, cornflowerblue)
thinlinewhite = LineStyle(1, white)
thinlineblack = LineStyle(1, black)
thinlinegold = LineStyle(1, gold)
thinlinegolder = LineStyle(1, golder) #I played around to get this one

#Defining Shapes
triangle = PolygonAsset([(500,500), (1000,500), (750, 500+ 250*sqrt(3))],thinlineblue, cornflowerblue)
circle = CircleAsset(100,thinlineblue, cornflowerblue)
smalltriangle = PolygonAsset([(725,600), (775,600), (750, 600+ 25*sqrt(3))],thinlineblack, black)
whiteeye = CircleAsset(32,thinlinewhite,white)
pupil = CircleAsset(12,thinlineblack,black)
whisker = RectangleAsset(100,7,thinlineblack,black)
cheese = RectangleAsset(180, 70, thinlinegold, gold)
cheesetop = PolygonAsset([(650,245), (830, 245), (780, 205), (650, 245)], thinlinegolder, golder)
cheesehole = EllipseAsset(17,10, thinlinegolder, golder)
alsocheesehole = EllipseAsset(9,6, thinlinegolder, golder)
alsoalsocheesehole = EllipseAsset(11,8, thinlinegolder, golder)
#print
#head
s=Sprite(triangle, (120,120))
s.scale=0.8
#ears
Sprite(circle, (60,45))
Sprite(circle, (380,45))
#nose
Sprite(smalltriangle, (294.5,420))
#eyes
Sprite(whiteeye, (225,200))
Sprite(whiteeye, (350,200))
Sprite(pupil, (255, 220))
Sprite(pupil, (380, 220))
#whiskers
w=Sprite(whisker, (370, 330))
w.rotation=.3
W=Sprite(whisker, (370, 335))
W.rotation=0
m=Sprite(whisker, (370, 340))
m.rotation=-.3
r=Sprite(whisker, (174, 301))
r.rotation=-.3
k=Sprite(whisker, (170, 335))
k.rotation=0
l=Sprite(whisker, (174, 368))
l.rotation=.3
#cheese
c=Sprite(cheese, (650, 245))
Sprite(cheesetop, (650, 205))
Sprite(cheesehole, (663, 260))
Sprite(cheesehole, (730, 280))
Sprite(alsocheesehole, (717, 255))
Sprite(alsocheesehole, (680, 295))
Sprite(alsoalsocheesehole, (785, 292))
Sprite(alsocheesehole, (800, 265))
Sprite(alsoalsocheesehole, (766, 256))
#s.rotation=inradians
# add your code here /\ /\ /\


Expand Down