-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
39 lines (29 loc) · 882 Bytes
/
main.py
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
from shape import create_broadleaved_symbol, create_needleleaved_symbol
N = (3, 4, 5)
BASE_CONVEXITY = 0.3
concavity = 3
dot1 = 1.4
dot2 = 1.8
dot3 = 2.2
DOTS = (None, [dot1], [dot1, dot2], [dot1, dot2, dot3])
b1 = 1.4
b2 = 1.8
b3 = 2.2
BRANCHES = (None, [b1], [b1, b2], [b1, b2, b3])
CENTRE = (None, "p", "o")
for c in CENTRE:
create_broadleaved_symbol(1, "circular", 0, None, c)
for n in (3, 5):
for d in DOTS[1:4]:
for c in CENTRE:
create_broadleaved_symbol(n, "circular", 0, d, c)
for n in N:
for d in DOTS:
for c in CENTRE:
convexity = BASE_CONVEXITY + n / 10
create_broadleaved_symbol(n, "convex", convexity, d, c)
create_broadleaved_symbol(n, "concave", concavity, d, c)
for n in N:
for branch in BRANCHES:
for c in CENTRE:
create_needleleaved_symbol(n, branch, c)