<commit_before>"""
picture.py
Author: <NAME>
Credit: The internet, classmates

Assignment:

Use the ggame library to "paint" a graphical picture of something (e.g. a house, a face or landscape).

Use at least:
1. Three different Color objects.
2. Ten different Sprite objects.
3. One (or more) RectangleAsset objects.
4. One (or more) CircleAsset objects.
5. One (or more) EllipseAsset objects.
6. One (or more) PolygonAsset objects.

See:
https://github.com/HHS-IntroProgramming/Standards-and-Syllabus/wiki/TUTORIAL:-Displaying-Graphics
for general information on how to use ggame.

See:
http://brythonserver.github.io/ggame/
for detailed information on ggame.

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


# Three primary colors with no transparency (alpha = 1.0)
red = Color(0xff0000, 1.0)
green = Color(0x00ff00, 1.0)
blue = Color(0x0000ff, 1.0)
black = Color(0x000000, 1.0)
seafoam = Color(0x58FAD0, 1.0)
navy = Color(0x08088A, 1.0)
gray = Color(0xA4A4A4, 1.0)
darkgray = Color(0x585858, 1.0)
white = Color(0xffffff, 1.0)
translucent = Color(0xffffff, 0.5)
yellow = Color(0xF7FE2E, 1.0)


thinline = LineStyle(1, black)
mediumline = LineStyle(3, black)
thickline = LineStyle(5, black)
redline = LineStyle(3, red)
noline = LineStyle(0, red)

rectangle = RectangleAsset(500, 200, noline, navy)
rectangle2 = RectangleAsset(500, 200, noline, seafoam)
circle = CircleAsset(30, noline, darkgray)
road = RectangleAsset(2000, 30, noline, gray)
cartriangle1 = PolygonAsset([(0, 0), (0, 125), (175, 0)], noline, white)
cartriangle2 = PolygonAsset([(0, 100), (0, 0), (-30, 0)], noline, white)
window1 = EllipseAsset(55, 35, noline, translucent)
lights = RectangleAsset(10, 30, noline, yellow)
windshield = RectangleAsset(30, 110, noline, black)

# Now display a rectangle

#Car one
Sprite(rectangle, (100, 200))
Sprite(circle, (475, 400))
Sprite(circle, (225, 400))
Sprite(cartriangle1, (100, 200))
Sprite(cartriangle2, (600, 200))
Sprite(window1, (330, 275))
Sprite(window1, (495, 275))
Sprite(lights, (100, 360))
s1 = Sprite(windshield, (110, 190))
s1.rotation = -0.4

#Car two
Sprite(rectangle2, (700, 200))
Sprite(circle, (1075, 400))
Sprite(circle, (825, 400))
Sprite(cartriangle1, (700, 200))
Sprite(cartriangle2, (1200, 200))
Sprite(window1, (930, 275))
Sprite(window1, (1095, 275))
Sprite(lights, (700, 360))

Sprite(road, (0, 430))

myapp = App()
myapp.run()<commit_msg>Updated from Brython Server: 9/14/2015 2:50:55 PM<commit_after>"""
picture.py
Author: <NAME>
Credit: The internet, classmates

Assignment:

Use the ggame library to "paint" a graphical picture of something (e.g. a house, a face or landscape).

Use at least:
1. Three different Color objects.
2. Ten different Sprite objects.
3. One (or more) RectangleAsset objects.
4. One (or more) CircleAsset objects.
5. One (or more) EllipseAsset objects.
6. One (or more) PolygonAsset objects.

See:
https://github.com/HHS-IntroProgramming/Standards-and-Syllabus/wiki/TUTORIAL:-Displaying-Graphics
for general information on how to use ggame.

See:
http://brythonserver.github.io/ggame/
for detailed information on ggame.

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


# Three primary colors with no transparency (alpha = 1.0)
red = Color(0xff0000, 1.0)
green = Color(0x00ff00, 1.0)
blue = Color(0x0000ff, 1.0)
black = Color(0x000000, 1.0)
seafoam = Color(0x58FAD0, 1.0)
navy = Color(0x08088A, 1.0)
gray = Color(0xA4A4A4, 1.0)
darkgray = Color(0x585858, 1.0)
white = Color(0xffffff, 1.0)
translucent = Color(0xffffff, 0.5)
yellow = Color(0xF7FE2E, 1.0)


thinline = LineStyle(1, black)
mediumline = LineStyle(3, black)
thickline = LineStyle(5, black)
redline = LineStyle(3, red)
noline = LineStyle(0, red)

rectangle = RectangleAsset(500, 200, noline, navy)
rectangle2 = RectangleAsset(500, 200, noline, seafoam)
circle = CircleAsset(30, noline, darkgray)
road = RectangleAsset(2000, 30, noline, gray)
cartriangle1 = PolygonAsset([(0, 0), (0, 125), (175, 0)], noline, white)
cartriangle2 = PolygonAsset([(0, 100), (0, 0), (-30, 0)], noline, white)
window1 = EllipseAsset(55, 35, noline, translucent)
lights = RectangleAsset(10, 30, noline, yellow)
windshield = RectangleAsset(30, 140, noline, translucent)

# Now display a rectangle

#Car one
Sprite(rectangle, (100, 200))
Sprite(circle, (475, 400))
Sprite(circle, (225, 400))
Sprite(cartriangle1, (100, 200))
Sprite(cartriangle2, (600, 200))
Sprite(window1, (330, 275))
Sprite(window1, (495, 275))
Sprite(lights, (100, 360))
s1 = Sprite(windshield, (237, 220))
s1.rotation = -0.9

#Car two
Sprite(rectangle2, (700, 200))
Sprite(circle, (1075, 400))
Sprite(circle, (825, 400))
Sprite(cartriangle1, (700, 200))
Sprite(cartriangle2, (1200, 200))
Sprite(window1, (930, 275))
Sprite(window1, (1095, 275))
Sprite(lights, (700, 360))
s2 = Sprite(windshield, (837, 220))
s2.rotation = -0.9

Sprite(road, (0, 430))

myapp = App()
myapp.run()
{'fraction_non_alphanumeric': 0.14673366834170853, 'fraction_numerical': 0.1093467336683417, 'mean_word_length': 5.582010582010582, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6130774', 'n_tokens_mistral': 2226, 'n_tokens_neox': 1905, 'n_words': 547}