-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
voronoi.pug
54 lines (51 loc) · 1.83 KB
/
voronoi.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
doctype html
html
head
title Voronoi Designer
script(type="text/javascript", src="node_modules/@svgdotjs/svg.js/dist/svg.min.js")
script(type="text/javascript", src="node_modules/voronoi/rhill-voronoi-core.min.js")
script(type="text/javascript", src="voronoi.js")
style
:stylus
@media print
.noprint
display: none
.w-100
width: 100%
include:stylus voronoi.styl
//#include virtual="../../analytics.html"
body.font-voronoi.one-false.color-false
table.w-100
tr
td(style="text-align: left; vertical-align: middle;")
h1
a(href="voronoi.html") Voronoi Designer
td(style="text-align: center; vertical-align: middle;")
input#grid(type="button", value="Grid Off")
input#lessGrid(type="button", value="Less Grid")
input#moreGrid(type="button", value="More Grid")
br
| Flip/rotate:
button#flipHorizontal ↔
button#flipVertical ↕
button#rotateLeft ↺
button#rotateRight ↻
br
| Shift:
button#shiftLeft ←
button#shiftUp ↑
button#shiftDown ↓
button#shiftRight →
td(style="vertical-align: middle;")
| <b>Delete</b> point by dragging it outside the square.
br
| <b>Multiselect</b> points by clicking while
br
| holding <kbd>SHIFT</kbd> (add) or <kbd>CONTROL</kbd> (toggle).
br
| <b>Toggle</b> whether cell is in glyph
br
| by double-clicking point.
td(style="text-align: right; vertical-align: middle;")
h2 by <a href="https://erikdemaine.org/">Erik Demaine</a> and <a href="http://martindemaine.org">Martin Demaine</a>, 2016
#voronoi.w-100