-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
design.pug
107 lines (99 loc) · 2.94 KB
/
design.pug
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
doctype html
html
head
title Strip Folding Designer
script(type="text/javascript", src="node_modules/@svgdotjs/svg.js/dist/svg.min.js")
script(type="text/javascript", src="node_modules/furls/furls.js")
script(type="text/javascript", src="strip.js")
script(type="text/javascript", src="design.js")
style
:stylus
.hud-false > body > *:not(#gui), #hud, #download
display: none
@media print
.noprint
display: none
svg
width: 100%
height: 100%
.w-50
width: 50%
.w-100
width: 100%
.h-50
height: 50%
.text-left
text-align: left
.text-center
text-align: center
.text-right
text-align: right
.align-middle
vertical-align: middle
.float-left
float: left
//#include virtual="../../analytics.html"
body
table.w-100
tr
td.text-left.align-middle
h1
a(href="./") Strip Folding Designer
td.text-right.align-middle
h2 by <a href="https://erikdemaine.org/">Erik Demaine</a> and <a href="https://martindemaine.org">Martin Demaine</a>, 2016
table
td(style="font-size: x-large")
label(for="cp")
b Enter code for strip crease pattern:
br
textarea#cp(rows=2, cols=80)
td(style="padding-left: 2em")
| <code>|</code> for perpendicular folds
br
| <code>/</code> and <code>\</code> for diagonal folds which occupy one square
br
| <code> </code> for a blank square
br
| <code>!</code> for a half square
br
| <code>~</code> to separate start/middle/end
td
label(for="shadow") Shadow:
br
input#shadow(type="range", min=0, max=100, value=50)
br
label(for="opacity") Paper opacity:
br
input#opacity(type="range", min=0, max=100, value=100)
br
input#backlight(type="checkbox")
label(for="backlight") Backlight
p
table.w-100#gui
tr
td#unfold1.w-50.h-50
td#unfold2.w-50.h-50
tr
td#fold1.w-50.h-50
td#fold2.w-50.h-50
tr
td.text-center
| 1 ×
span#aspectRatioWith ?
| <i>with connectors</i>
td.text-center
| 1 ×
span#aspectRatioWithout ?
| <i>without connectors</i>
.text-right.noprint
button#simulate.float-left Simulate in Origami Simulator
| Download SVG:
button#downloadCP Crease Pattern
button#downloadSim Crease Pattern for Origami Simulator
button#downloadFolded Folded Form
a#download
hr
p.
Check out <A HREF="http://erikdemaine.org/fonts/">other mathematical and
puzzle fonts</A>. • Feedback or not working?
<A HREF="mailto:[email protected]">Email Erik</A>.