Skip to content

Commit

Permalink
logo snowflake cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ellisk42 committed Oct 2, 2018
1 parent c78930b commit 309966a
Show file tree
Hide file tree
Showing 18 changed files with 13 additions and 130 deletions.
9 changes: 0 additions & 9 deletions data/geom/five/snow1.LoG

This file was deleted.

12 changes: 0 additions & 12 deletions data/geom/five/snow2.LoG

This file was deleted.

8 changes: 0 additions & 8 deletions data/geom/five/snow3.LoG

This file was deleted.

6 changes: 0 additions & 6 deletions data/geom/five/star.LoG

This file was deleted.

4 changes: 0 additions & 4 deletions data/geom/penoff/train_penoff_3.LoG

This file was deleted.

6 changes: 0 additions & 6 deletions data/geom/penoff/train_penoff_5.LoG

This file was deleted.

2 changes: 0 additions & 2 deletions data/geom/penoff/train_penoff_6.LoG

This file was deleted.

2 changes: 0 additions & 2 deletions data/geom/penoff/train_penoff_7.LoG

This file was deleted.

9 changes: 0 additions & 9 deletions data/geom/six/snow1.LoG

This file was deleted.

13 changes: 0 additions & 13 deletions data/geom/six/snow2.LoG

This file was deleted.

9 changes: 0 additions & 9 deletions data/geom/six/snow3.LoG

This file was deleted.

6 changes: 0 additions & 6 deletions data/geom/six/star.LoG

This file was deleted.

6 changes: 0 additions & 6 deletions data/geom/square/train_square_10.LoG

This file was deleted.

9 changes: 0 additions & 9 deletions data/geom/three/snow1.LoG

This file was deleted.

13 changes: 0 additions & 13 deletions data/geom/three/snow2.LoG

This file was deleted.

9 changes: 0 additions & 9 deletions data/geom/three/snow3.LoG

This file was deleted.

6 changes: 0 additions & 6 deletions data/geom/three/star.LoG

This file was deleted.

14 changes: 13 additions & 1 deletion makeLogoTasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def problem(n, examples, highresolution, needToTrain=False):
for f in files:
if f.endswith("_l.png"):
fullPath = rootdir + subfolder + "/" + subfl + '/' + f
eprint(fullPath)
img1 = fileToArray(fullPath)
highresolution = fileToArray(fullPath.replace("_l.png", "_h.png"))
try:
Expand Down Expand Up @@ -368,8 +369,19 @@ def T(*a): tasks.append(manualLogoTask(*a))
"""
(loop j %d
(embed (loop i infinity (move epsilonLength epsilonAngle)))
pu (move %s 0a) pd)"""%(n,l))
pu (move %s 0a) pd)"""%(n,l))

for n in [3,5,6]:
body = {"empty": "(move 1d 0a)",
"dashed": "pu (move 1d 0a) pd (move 1d 0a)",
"circle": "(move 1d 0a) (loop i (+ infinity infinity) (move epsilonLength epsilonAngle))",
"semicircle": "(move 1d 0a) (loop i infinity (move epsilonLength epsilonAngle))"}
for name in body:
T("%d-%s snowflake"%(n,name),
"""
(loop j %d
(embed %s)
(move 0d (/a (+a 1a 1a) %d)))"""%(n,body[name],n))
return tasks

def montageTasks(tasks):
Expand Down

0 comments on commit 309966a

Please sign in to comment.