-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmandala.html
192 lines (187 loc) · 9.28 KB
/
mandala.html
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Mandala</title>
<link href="http://fonts.googleapis.com/css?family=Alegreya+Sans:100,300,400,500,700|Raleway:400,100,200,300,500,600,700" rel="stylesheet" type="text/css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="web/css/semantic.css">
<link type="text/css" rel="stylesheet" href="web/css/mandala.css">
<script src="web/js/TweenMax.min.js"></script>
<script src="web/js/ColorPropsPlugin.min.js"></script>
<script src="web/js/CSSRulePlugin.min.js"></script>
<script src="web/js/ScrollToPlugin.min.js"></script>
<!--<script src="//code.jquery.com/jquery-git2.min.js"></script>-->
<script>$.noConflict();</script>
<script src="web/js/semantic.js"></script>
</head>
<body>
<div id="main-container" class="ui grid">
<div id="drawingtool-container" class="row">
<div id="title" class="top-toolbar row">
<span style="display:block">Mandala Drawerer</span>
<span id="byline">by Mario Gonzalez</span>
</div>
<div id="drawingtool" class="twelve wide column">
<div class="top-toolbar row">
<div class="ui small inverted menu">
<a id="nu-interface-save-image" class="item">
<i class="save icon"></i>
Save Image
</a>
<a id="nu-interface-save-svg" class="item">
<i class="save icon"></i>
Save SVG
</a>
<div class="right menu">
<a class="item" data-edit-action="undo">
<i class="undo icon"></i>
Undo
</a>
<a class="item" data-edit-action="undo">
<i class="trash icon"></i>
Clear
</a>
</div>
</div>
</div>
<div class="row">
<canvas id="canvas" width="650" height="650" class="center"></canvas>
</div>
</div>
<div id="right-panel" class="four wide column">
<div class="nu-interface ui two column grid">
<div class="row">
<div id="label-drawing-mode-menu" class="ui small label">Drawing Mode</div>
</div>
<div class="menu row">
<div class="left action column">
<div class="left action ui vertical small icon menu">
<a class="item" data-drawingmode="RegularStroke">
<i class="pencil icon"></i>
RegularLine
</a>
<a class="item" data-drawingmode="SmoothStroke">
<i class="pencil icon"></i>
SmoothLine
</a>
<a class="item" data-drawingmode="PolygonalStroke">
<i class="star empty icon"></i>
PolyLine
</a>
</div>
</div>
<div class="right action column">
<div class="right action ui vertical small icon menu">
<a class="item" data-drawingmode="RegularFill">
<i class="edit icon"></i>
RegularFill
</a>
<a class="item" data-drawingmode="SmoothFill">
<i class="edit icon"></i>
SmoothFill
</a>
<a class="item" data-drawingmode="PolygonalFill">
<i class="star icon"></i>
PolyFill
</a>
</div>
</div>
</div>
<!-- PIECE MENU -->
<div class="row">
<div id="label-piece-menu" class="ui small label">Piece</div>
</div>
<div class="menu row">
<div class="sixteen wide column">
<div class="settings ui vertical small menu">
<!-- MIRROR MODE TOGGLE -->
<div class="item">
<div class="ui toggle checkbox">
<input type="checkbox" name="toggle-mirroring">
<label>Mirror Mode</label>
</div>
</div>
<!-- SIDE SLIDER -->
<a class="item">
<input id="interface-sidecount-slider" class="" type="range" min="1" max="28" step="1" value="14">
<span class="slider-label" id="interface-sidecount-slider-text">Sides: 14</span>
</a>
</div>
</div>
</div>
<div id="advanced-toggle" data-is-showing="true" class="row">
Advanced<span id="advanced-toggle-chevron" class="fa chevron up"></span>
</div>
<!-- TOOL MENU -->
<div class="row">
<div id="label-tool-menu" class="ui small label">Tool</div>
</div>
<div class="menu row">
<div class="sixteen wide column">
<div class="settings ui vertical small icon menu">
<a class="item">
<input id="interface-line-width-slider" class="" type="range" min="0.25" max="5" step="0.25" value="0.5">
<span class="slider-label" id="interface-line-width-slider-text">Width: 1.0</span>
</a>
<!--OPACITY SLIDER-->
<a class="item">
<input id="interface-opacity-slider" class="interface-opacity-slider" type="range" min="15" max="75" step="1" value="6">
<span class="slider-label" id="interface-opacity-slider-text">Alpha: 0.25</span>
</a>
</div>
</div>
</div>
<!-- EDITOR MENU -->
<div class="row">
<div id="label-editor-menu" class="ui small label">Editor</div>
</div>
<div class="menu row">
<div class="sixteen wide column">
<div class="settings ui vertical small menu">
<!-- DrawPoints MODE TOGGLE -->
<div class="item">
<div class="ui toggle checkbox">
<input type="checkbox" name="toggle-draw-points">
<label>Draw Points</label>
</div>
</div>
<!-- SCALE SLIDER -->
<a class="item">
<input id="interface-scale-slider" class="" type="range" min="100" max="300" step="1" value="100">
<span class="slider-label" id="interface-scale-slider-text">Zoom: 1.0</span>
</a>
</div>
</div>
</div>
<!-- COLOR MENU -->
<div class="row">
<div id="label-color-menu" class="ui small label">Color</div>
</div>
<div class="menu row">
<div class="sixteen wide column">
<div class="settings ui vertical small menu">
<a class="item">
<input id="interface-color-line-slider" type="color">
<span class="slider-label" id="interface-color-line-text">Line Color</span>
</a>
<a class="item">
<input id="interface-color-gradient-start-slider" type="color">
<span class="slider-label" id="interface-color-gradient-start-text">Gradient Start</span>
</a>
<a class="item">
<input id="interface-color-gradient-end-slider" type="color">
<span class="slider-label" id="interface-color-gradient-end-text">Gradient End</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="application/dart" src="web/dart/mandala.dart"></script>
<script src="packages/browser/dart.js"></script>
<script src="packages/browser/interop.js"></script>
</body>
</html>