-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path__main__.py
More file actions
79 lines (61 loc) · 1.5 KB
/
Copy path__main__.py
File metadata and controls
79 lines (61 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
"""2026-04-16
World Plone Day 2026
Just a celebration of Plone.
ericof.com
png
Sketch,py5,CreativeCoding
"""
from sketches.utils.draw import canvas
from sketches.utils.helpers import sketches as helpers
import py5
sketch = helpers.info_for_sketch(__file__, __doc__)
cor_fundo = py5.color(0)
plone_color = py5.color("#0083BE")
def logo():
diametro = 600
diametro_interno = 130
py5.stroke_weight(2)
py5.stroke(plone_color)
py5.no_fill()
passo = 8
# Borda
for i in range(477, diametro + 1, passo):
py5.circle(0, 0, i)
passo = 6
# Circulo 1
for i in range(0, diametro_interno + 1, passo):
py5.circle(93, 0, i)
x = -40
y = 131
# Circulo 2
for i in range(0, diametro_interno + 1, passo):
py5.circle(x, -y, i)
# Circulo 3
for i in range(0, diametro_interno + 1, passo):
py5.circle(x, y, i)
def setup():
py5.size(*helpers.DIMENSOES.external, py5.P3D)
py5.color_mode(py5.HSB, 360, 100, 100)
def draw():
py5.background(cor_fundo)
with py5.push():
py5.translate(*helpers.DIMENSOES.centro)
logo()
# Credits and go
canvas.sketch_frame(
sketch,
cor_fundo,
"large_transparent_white",
"transparent_white",
version=2,
)
def key_pressed():
key = py5.key
if key == " ":
save_and_close()
def save_and_close():
py5.no_loop()
canvas.save_sketch_image(sketch)
py5.exit_sketch()
if __name__ == "__main__":
py5.run_sketch()