-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
1502 lines (1144 loc) · 40.4 KB
/
index.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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<meta charset="UTF-8">
<html>
<head>
<title>Patterns</title>
<!-- Smartphone Browser -->
<meta name="viewport" content="user-scalable=no"/>
<!-- see https://0.s3.envato.com/files/144700183/index.html for usage documentation -->
<link rel="stylesheet" type="text/css" href="include/jcolor.min.css">
<script src="include/jquery2.1.1.js"></script>
<script src="include/jcolor.min.js"></script>
<!-- https://bgrins.github.io/spectrum/ -->
<script src="include/bgrins-spectrum-98454b5/spectrum.js"></script>
<link rel="stylesheet" href="include/bgrins-spectrum-98454b5/spectrum.css" />
<script src="include/jquery-ui.js"></script>
<!-- CSS
<link rel="stylesheet" href="include/jquery-ui.css" />
-->
<!-- Herewith include the great *D3* library -->
<script src="include/d3/d3.min.js"></script>
<!-- http://mathjs.org/index.html -->
<script src="include/math.min.js"></script>
<script src="include/fabric.min.js"></script>
<!-- Here's my own code... -->
<!-- CSS -->
<link rel="stylesheet" href="css-toolbox.css" />
<link rel="stylesheet" href="css-common-widgets.css" />
<link rel="stylesheet" href="css-cpot-view.css" />
<link rel="stylesheet" href="css-cpot-edit.css" />
<link rel="stylesheet" href="css-grids.css" />
<link rel="stylesheet" href="css-plots.css" />
<link rel="stylesheet" href="css-export.css" />
<link rel="stylesheet" href="css--sandbox.css" />
<link rel="stylesheet" href="css-gallery.css" />
<link rel="stylesheet" href="css-gallery-zoom.css" />
<link rel="stylesheet" href="css-motifs-view.css" />
<link rel="stylesheet" href="css-motifs-edit.css" />
<link rel="stylesheet" href="css-motifs-bg-svg.css" />
<link rel="stylesheet" href="css-paintings.css" />
<link rel="stylesheet" href="css-patterns.css" />
<!-- JS -->
<script src="global.js"></script>
<script src="widgets.js"></script>
<script src="datamodel.js"></script>
<script src="logic.js"></script>
<script src="cpot-view.js"></script>
<script src="cpot-util.js"></script>
<script src="cpot-edit.js"></script>
<script src="cpot-edit-init.js"></script>
<script src="grids.js"></script>
<script src="grids-init.js"></script>
<script src="plots.js"></script>
<script src="plots2.js"></script>
<script src="export.js"></script>
<script src="gallery.js"></script>
<script src="gallery-files.js"></script>
<script src="gallery-images.js"></script>
<script src="gallery-text.js"></script>
<script src="gallery-slideshow.js"></script>
<script src="gallery-zoom.js"></script>
<script src="motifs-view.js"></script>
<script src="motifs-edit.js"></script>
<script src="motifs-edit-init.js"></script>
<script src="motifs-props.js"></script>
<script src="patterns.js"></script>
<script src="density-util.js"></script>
</head>
<body>
<div id="backgrounds">
<svg id="grids-bg-svg"></svg>
<svg id="patterns-bg-svg"></svg>
</div>
<div id="toast-box">Dummy Toast Text here...</div>
This is the page body...
<br>
<a href="/samples.html">[link to samples page]</a>
<!-- the cpanel DIV -->
<div class="cpanel cpanel-main-size1" id="main">
<!-- title bar -->
<div id="cpanel-title-strip">
<div class="cpanel-title" id="cpanel-title-1">Pattern Generator</div>
<div class="cpanel-title" id="cpanel-title-2">TOOLBOX</div>
<!-- badges (drag / hide) -->
<div class="badge" id="cpanel-title-drag">
<div class="badge-content">drag</div>
</div>
<div class="badge" id="cpanel-title-hide">
<div class="badge-content">hide</div>
</div>
</div>
<!-- cpanel body (i.e. content beneath the blue gradient strip -->
<div id="cpanel-main-body">
<div id="cpanel-main-tabs">
<ul>
<li><a href="#Tab-cpot">Colour Pots</a></li>
<li><a href="#Tab-cfun">Colouring Functions</a></li>
<li><a href="#Tab-motf">Motifs</a></li>
<li><a href="#Tab-grid">Grids</a></li>
<li><a href="#Tab-plot">Density Plots</a></li>
<li><a href="#Tab-paint">Density Paintings</a></li>
<li><a href="#Tab-patt">Patterns</a></li>
<li><a href="#Tab-exmp">Examples</a></li>
<li><a href="#Tab-optn">Options</a></li>
<li><a href="#Tab-tuti">Tutorial</a></li>
</ul>
<!-- == Tab: Colour Pot == -->
<div id="Tab-cpot">
<div id="colour-pots-view">
<table class="user-data-table" id="view-cp-table">
<thead>
<tr>
<th class="col-1">#</th>
<th class="col-2">Description</th>
<th class="col-3">Preview</th>
</tr>
</thead>
<tbody>
<!-- rows populated using JS -->
</tbody>
</table>
<div class="preview-container chequer" id="main-cp-view"></div>
<div id="cp-view-table-buttons">
<div class="button" id="edit">Edit</div>
<div class="button" id="duplicate">Duplicate</div>
<div class="button" id="delete">Delete</div>
</div>
<div class="action-link" id="c-pot-view-rerandomise">re-randomise preview</div>
</div>
<!-- == Sub-tab: Colour Pot Edit == -->
<div id="colour-pots-edit" style="display: none;">
<!-- 1. [cp-edit] Title Bar -->
<input class="cpot-title plain-cell" />
<!-- 2. [cp-edit] Table -->
<table class="user-data-table" id="edit-cp-table">
<thead>
<tr>
<th class="col-1">#</th>
<th class="col-2">Prob</th>
<th class="col-3">Item</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<!-- 3. [cp-edit] Table Bottom -->
<div id="cp-edit-beneath-table">
<!-- 3.2 [cp-edit] Table Actions -->
<div id="cp-edit-actions">
<div class="mini-text" id="probs-sum">
<span>Probs sum:</span>
<span id="sum" class="A">x</span> (<span id="delta" class="A">x</span>)
</div>
<div class="dropdown plain summing">
<button class="dropbtn">Summing Tools</button>
<div class="dropdown-content">
<a href="#" id="delta-to-selection">sum to 100% (adjust selected)</a>
<a href="#" id="sum100">sum to 100% (rescale all)</a>
<a href="#" id="all-eq">sum to 100% (all equal)</a>
</div>
</div>
<div class="dropdown plain elem-type">
<button class="dropbtn">Solid (non-static)</button>
<div class="dropdown-content">
<a id="conv-to-solid" href="#">Solid</a>
<a id="conv-to-range" href="#">Range</a>
<a href="#">Convert to non-static</a>
</div>
</div>
<!-- 3.2 These are going into the dropdown menu!
[<div class="action-link" id="all-eq">all eq</div>]
[<div class="action-link" id="delta-to-selection">ap-r</div>]
<div class="action-link" id="sum100">make sum to 100%</div>
<div id="solid-v-range" class="act-mutex">
Type:<div>Solid</div><div>Range</div>
</div>
-->
</div>
<!-- 3.1 [cp-edit] Table Buttons -->
<div id="cp-edit-table-buttons">
<div class="button s" id="add">Add <div id="A"></div><div id="B"></div></div>
<div class="button s" id="delete">Delete</div>
</div>
</div>
<!-- 4. [cp-edit] Pot preview -->
<div id="preview-area">
<div class="preview-container chequer"></div>
<div class="action-link" id="re-randomise">re-randomise</div>
<div class="action-link" id="expand">expand</div>
</div>
<!-- 5. [cp-edit] Slider -->
<div id="cp-edit-slider">style this slider!</div>
<!-- 7. [cp-edit] Cancel/Done Buttons -->
<div id="cp-edit-buttons">
<div class="button" id="cancel">Cancel</div>
<div class="button" id="done">Done</div>
</div>
<!-- 8. [cp-edit] Row Colour changing Pane -->
<div id="cp-edit-colour">
<!-- 8.1 [cp-edit] BGrins Picker: the actual DOM content for this is shared between Solid & Range... -->
<div id="bgrins-container" class="cpanel">
<input id="bgrins-colour-picker" />
<div id="bgrins-actions">
<div id="normal-large" class="act-mutex">
<div>Normal</div><div>Large</div>
</div>
<div id="hex-rgb-hsl" class="act-mutex">
Code:<div>Hex</div><div>RGB</div><div>HSL</div>
</div>
</div>
<div id="bgrins-buttons">
<div class="button s" id="cancel">Cancel</div>
<div class="button s" id="choose">Choose</div>
</div>
</div>
<!-- 8.2 [cp-edit] Pane for Solid changing -->
<div id="cp-edit-solid">
<div class="colour-sun l"></div>
<div class="sld hue">Hue:
<input class="plain-cell"/>
</div>
<div class="sld sat">Saturation:
<input class="plain-cell"/>
</div>
<div class="sld lum">Luminosity:
<input class="plain-cell"/>
</div>
<div id="k2">
<div id="strip"></div>
<div class="chequer"></div>
</div>
<div class="sld alp">Alpha:
<input class="plain-cell"/>
</div>
</div>
<!-- 8.3 [cp-edit] Pane for Range changing (class 's' for small!)-->
<div id="cp-edit-tabs" class="s">
<ul>
<li><a href="#tabs-e1">Central</a></li>
<li><a href="#tabs-e2">Boundaries</a></li>
<li><a href="#tabs-e3">More</a></li>
</ul>
<!-- 8.3.1 - Tab E1 -->
<!-- CP-Range editor interface - Part 1 of 3: Range->Central -->
<div class="boxie s no-title" id="tabs-e1">
<div class="Ln1">
<div class="text">Central Colour:</div>
<div class="colour-sun s"></div>
</div>
<div class="Ln hue">
<div class="name"></div>
<div class="mid">
Mid:<input class="plain-cell s"/>
</div>
<div class="var">
Rng:<input class="plain-cell s"/>
</div>
<div class="view">
<div class="chequer"></div>
<div class="B left"></div>
<div class="B center"></div>
<div class="B right"></div>
</div>
</div>
</div>
<!-- 8.3.2 - Tab E2 -->
<!-- CP-Range editor interface - Part 2 of 3: Range->Boundaries -->
<div class="boxie s no-title" id="tabs-e2">
<div class="colour-block c1">
<div class="text">Colour 1:</div>
<div class="colour-sun m"></div>
<div class="view">
<div class="chequer"></div>
<div class="B"></div>
</div>
</div>
<div class="colour-block c2">
<div class="text">Colour 2:</div>
<div class="colour-sun m"></div>
<div class="view">
<div class="chequer"></div>
<div class="B"></div>
</div>
</div>
<div class="colour-bar chequer">
<div class="gradient"></div>
</div>
<div class="mini-text alc" id="reverse-hue">
<div class="action-link">Reverse Hue</div>
<span>(ac)</span>
</div>
<div class="mini-text alc" id="permute-sla">
<div class="action-link">Permute SLA</div>
(<span>x.</span>)
</div>
</div>
<!-- 8.3.3 - Tab E3 -->
<!-- CP-Range editor interface - Part 3 of 3: Range->More -->
<div class="boxie s no-title" id="tabs-e3">
<div id="space-1d-4d" class="act-mutex">
Draw from:<div>1D line</div><div>4D space</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- == Tab: Colouring Functions == -->
<div id="Tab-cfun">
Colouring Functions Tab Placeholder
</div>
<!-- == Tab: Motifs == -->
<div id="Tab-motf">
<div id="motifs-view">
<table class="user-data-table">
<thead>
<tr>
<th class="col-1">#</th>
<th class="col-2">Title</th>
<th class="col-3">D.</th>
<th class="col-4">Prev.</th>
</tr>
</thead>
<tbody>
<!-- rows populated using JS -->
</tbody>
</table>
<div class="preview">
<div class="title">My Motif 2</div>
<div class="pic-box"></div>
</div>
<div class="table-buttons">
<div class="button s" id="delete">Delete</div>
<div class="button s" id="add">Add</div>
<div class="button s" id="duplicate">Dupl.</div>
<div class="button s" id="edit">Edit</div>
</div>
<!-- zone 1 -->
<div class="boxie s mot-1">
<div class="title">Stats</div>
<div class="mini-text">
In Motif: How many shapes? How many colours?
</div>
</div>
<div class="mot-M">
<!-- zone 2 (middle chunk)-->
<div class="boxie s mot-2">
<div class="title">Colour Pots used</div>
<div class="mini-text">
Autumn leaves [re-randomise]
</div>
</div>
<!-- zone 3 (middle chunk) -->
<div class="boxie s mot-3">
<div class="title">Input Parameters</div>
<div class="mini-text">
K01 - animate <br>
K02 - animate <br>
K03 - animate
</div>
</div>
<!-- zone 4 (middle chunk) -->
<div class="boxie s mot-4">
<div class="title">Random Parameters</div>
<div class="mini-text">
K01 - animate <br>
K02 - animate <br>
K03 - animate
</div>
</div>
<div class="mot-5">
<div id="axes-on-off" class="act-mutex">
Axes:<div>Off</div><div>On</div>
</div>
<div id="gridlines-on-off" class="act-mutex">
Gridlines:<div>Off</div><div>On</div>
</div>
</div>
</div>
</div>
<!-- == Sub-tab: Motif-edit == -->
<div id="motifs-edit" style="display: none;">
<!-- 1. The fabric canvas, this is where it all happens! -->
<div id="Motif">
<div class="bg-layer ly1"></div>
<div class="bg-layer ly2"></div>
<div class="bg-layer ly3 chequer"></div>
<div class="bg-layer ly4">
<svg id="bg-axes-grid" width="399" height="399">
<g class="gridlines">
<!-- 3× cartesian grids -->
<g class="cartesian">
<g class="small"></g>
<g class="medium"></g>
<g class="large"></g>
</g>
<!-- 3× polar grids -->
<g class="polar">
<g class="small"></g>
<g class="medium"></g>
<g class="large"></g>
</g>
</g>
<g class="axes">
<line x1="199.5" y1="0" x2="199.5" y2="399" /> <!-- vertical -->
<line x1="0" y1="199.5" x2="399" y2="199.5" /><!-- horizontal -->
</g>
</svg>
</div>
<canvas width="399" height="399"></canvas>
<div class="interceptor">
<div></div>
</div>
</div>
<!-- 2. Parameters table -->
<table class="user-data-table" id="params">
<thead>
<tr>
<th class="col-1">Identifier</th>
<th class="col-2">Min</th>
<th class="col-3">Max</th>
</tr>
</thead>
<tbody>
<!-- rows populated using JS -->
</tbody>
</table>
<!-- 3. Motif elements listing and their properties -->
<div id="motif-props-zone">
<div class="listing-box">
<div class="title">Motif elements and their properties</div>
<div class="contents">
<div class="m-elem" id="m-elem-template" style="display: none;">
<div class="heading-bar">
<div class="name">(name here)</div>
<div class="p-origin">
<div class="title">Placement origin</div>
<!-- 3.1 - Lifted from https://www.w3schools.com/css/tryit.asp?filename=trycss_dropdown_button-->
<div class="dropdown teal">
<button class="dropbtn">Top Left</button>
<div class="dropdown-content">
<a href="#">Top-Left (Cartesian)</a>
<a href="#">Center (Cartesian)</a>
<a href="#">Center (Polar)</a>
</div>
</div>
</div>
<div class="props-tables-vis-buttons">
<button id="set-1" class="sel">Pos & Size</button>
<button id="set-2" class="sel">Appearance</button>
<button id="set-3" class="sel">Repetition</button>
<button id="set-4" class="sel">More</button>
</div>
<img class="dustbin delete-m-elem" src="icons/dustbin-100.png"/>
</div>
<!-- 3.2 - the actual properties of the object, organised into tables...-->
<div class="content-block">
<!-- 3.2.1 - Size & Position table-->
<div class="props-table-chunk set-1">
<div class="title">Placement & Size</div>
<table></table>
</div>
<!-- 3.2.2 - Styling table-->
<div class="props-table-chunk set-2">
<div class="title">Appearance</div>
<table></table>
</div>
<!-- 3.2.3 - Repetition table-->
<div class="props-table-chunk set-3">
<div class="title">Repetition</div>
<table></table>
</div>
<!-- 3.2.4 - More table-->
<div class="props-table-chunk set-4">
<div class="title">More Properties</div>
<table></table>
</div>
</div>
</div>
</div>
</div>
<div class="props-buttons">
<div class="button s" id="contract">Contract All</div>
<div class="button s" id="expand">Expand All</div>
<div class="button s" id="sweep">Sweep</div>
<div class="button s" id="render">Render</div>
<div class="button s" id="render10">Render ×10</div>
</div>
</div>
<!-- 4. Title -->
<div class="mid-1 motif-title">
<!-- 4.1 Column 1 - Title & Backround -->
<input class="plain-cell" id="motif-name" />
<div id="background-w-1-2-b" class="act-mutex">
Background:<div>white</div><div>trans.1</div><div>trans.2</div><div>black</div>
</div>
<!-- 4.2 Column 2 - Gridlines and Axes -->
<div class="grids-and-axes">
<div id="motif-grid" class="act-mutex">
Gridlines:<div>Off</div><div>On</div>
</div>
<div class="dropdown plain" id="grid-settings">
<button class="dropbtn">Grid Settings</button>
<div class="dropdown-content">
<div>
Grid System
</div>
<div class="btn-set system">
<button class="cartesian">Cartesian</button>
<button class="polar">Polar</button>
</div>
<div>
Grid Size
</div>
<div class="btn-set size">
<button class="small">Small
<div class="c-note cartesian">10px</div>
<div class="c-note polar">25px, 15°</div>
</button>
<button class="medium">Medium
<div class="c-note cartesian">25px</div>
<div class="c-note polar" >50px, 45°</div>
</button>
<button class="large">Large
<div class="c-note cartesian">50px</div>
<div class="c-note polar">100px, 90°</div>
</button>
</div>
<div>
Grid weight
<div class="btn-set weight">
<button class="faint">Faint</button>
<button class="normal">Normal</button>
<button class="strong">Strong</button>
</div>
</div>
<div id="gridlines-custom-size">
Custom size
<div>
<div class="i-note cartesian">x-spacing: </div>
<div class="i-note polar">radius-incr:</div>
<input class="plain-cell s"/>
</div>
<div>
<div class="i-note cartesian">y-spacing: </div>
<div class="i-note polar">angular-incr:</div>
<input class="plain-cell s"/>
</div>
<button class="reset">Reset</button>
</div>
</div>
</div>
<div id="motif-grid-snap" class="act-mutex">
Snap to Grid:<div>Off</div><div>On</div>
</div>
<div id="motif-axes" class="act-mutex">
Axes:<div>Off</div><div>On</div>
</div>
</div>
<!-- 4.3 Column 3 - Mouse & ...?? -->
<div class="mini-text">
<div class="mouse-coords" style="display: none;">
Mouse (x,y): (<span class="x">44</span>, <span class="y">44</span>)
</div>
</div>
</div>
<!-- 5. Tools -->
<div class="boxie s mid-1 tools">
<div class="title">Tools</div>
<div class="subcat shapes">
<div id="draw-one-many" class="act-mutex">
Draw:<div>one</div><div>many</div>
</div>
<div class="button sqr-but" id="obj-ellipse"><img src="icons/motif/shape-icon-ellipse.png"/></div>
<div class="button sqr-but" id="obj-rectangle"><img src="icons/motif/shape-icon-rectangle.png"/></div>
<div class="button sqr-but" id="obj-triangle"><img src="icons/motif/shape-icon-triangle.png"/></div>
<div class="button sqr-but" id="obj-hexagon"><img src="icons/motif/shape-icon-hexagon.png"/></div>
<div class="button sqr-but" id="obj-line"><img src="icons/motif/shape-icon-line.png"/></div>
</div>
<div class="subcat stroke">
<div class="hoverbutton line-width">
<div class="hov-btn sqr-but"><img src="icons/motif/line-width-icon.png"/></div>
<div class="menu-content">
<div class="title">Line Width</div>
</div>
</div>
</div>
<div class="subcat colours">
<div class="fill">
<span>Fill</span>
<div class="mini-picker"></div>
</div>
<div class="outl">
<span>Outline</span>
<div class="mini-picker"></div>
</div>
<div class="dropdown plain" id="choose-cpot">
<button class="dropbtn">Colour Pot</button>
<div class="dropdown-content">
<div class="j-note">
Using this tool colour pot pick is made at draw-time. From then it is a static colour.
</div>
<div id="cpot-fill-vs-outl">
<div>Choose for:</div>
<button class="fill">Fill</button>
<button class="outl">Outline</button>
</div>
<div id="cpot-available" style="display:none;"></div>
</div>
</div>
<div id="selection-col-hold" style="display:none;">
<div class="action-link fill">Hold</div>
<div class="action-link outl">Hold</div>
</div>
</div>
</div>
<!-- 6. Tabs [Pane for advanced motif options...]-->
<div class="mid-1 tabs s">
<ul>
<li><a href="#tabs-f1">Design mode</a></li>
<li><a href="#tabs-f2">Macros</a></li>
<li><a href="#tabs-f3">Patterning Controls</a></li>
<li><a href="#tabs-f4">Embed Motif</a></li>
</ul>
<!-- Tab F1 -->
<div class="boxie s no-title" id="tabs-f1">
Design mod choice
</div>
<!-- Tab F2 -->
<div class="boxie s no-title" id="tabs-f2">
Macros....
</div>
<!-- Tab F3 -->
<div class="boxie s no-title" id="tabs-f3">
rotational pattern. Linear pattern
</div>
<!-- Tab F4 -->
<div class="boxie s no-title" id="tabs-f4">
pick a motif to embed.....
</div>
</div><!-- (end of 6. tabs)-->
<!-- 7. Main Buttons -->
<div class="main-buttons">
<div class="button" id="cancel">Cancel</div>
<div class="button" id="done">Done</div>
</div>
</div>
</div>
<!-- == Tab: Grids == -->
<div id="Tab-grid">
<!-- 1. [Grids] Table -->
<table class="user-data-table" id="grids-table">
<thead>
<tr>
<th class="col-1">#</th>
<th class="col-2">Description</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div id="grids-buttons">
<div class="button s" id="add">Add</div>
<div class="button s" id="delete">Delete</div>
<div class="button s" id="advanced">Advanced Grid</div>
</div>
<div id="grid-controls-pane">
<div id="lines-v-grid" class="act-mutex">
Change grid type:<div>1D (=lines)</div><div>2D (=grid)</div>
</div>
<div class="boxie" id="line-set-1">
<div class="title">Line Set 1</div>
<div class="angle-indicator-icon"></div>
<div class="ls-param angle">
Angle:
<input class="plain-cell"/>
</div>
<div class="ls-param spacing">
Interval:
<input class="plain-cell"/>
<div class="act-mutex px-pc-qty">
Unit:<div>px</div><div>%</div><div>qty</div>
</div>
</div>
<div class="ls-param shift">
Shift:
<input class="plain-cell"/>
</div>
</div>
<div class="boxie" id="line-set-2">
<!-- inner html copied in dynamically -->
</div>
<div id="preset-grid" class="act-mutex">
Convert to:<div>Isometric (hex)</div><div>Square</div><div>Diamond</div>
</div>
<div id="link-angles" class="act-mutex">
Angles 1 & 2:<div>link</div><div>unlink</div>
</div>
<div id="slider-placeholder" >
this is where I want the slider to go.
</div>
<div class="boxie s" id="preview-opts">
<div class="title">Preview Options</div>
<div id="show-bg" class="act-mutex">Background:<div>Hide</div><div>Show</div></div>
<div id="show-points" class="act-mutex">Points:<div>Hide</div><div>Show</div></div>
<div id="colour-monochrome" class="act-mutex">Gridlines:<div>Colour</div><div>Monochrome</div></div>
<br>
<div id="one-v-all" class="act-mutex"><div>Show Selected</div><div>Show All</div></div>
<div class="button" id="show">Show</div>
<div class="action-link" id="hide">Hide Preview</div>
</div>
</div>
</div>
<!-- == Tab: Plots == -->
<div id="Tab-plot">
<table class="user-data-table" id="plots-table">
<thead>
<tr>
<th class="col-1">#</th>
<th class="col-2">Formula</th>
<th class="col-3">Z.&R.</th>
<th class="col-4">Prev.</th>
<th class="col-5">Hist.</th>
</tr>
</thead>
<tbody>
<!-- rows populated using JS -->
</tbody>
</table>
<!-- 1. buttons underneath table -->
<div class="zone" id="z-1">
<div id="undr-tabl-btns">
<div class="button s" id="add">Add</div>
<div class="button s" id="delete">Delete</div>
</div>
<div class="action-link" id="suggestions">Suggestions</div>
<div class="action-link" id="func-pal">Functions Palette</div>
</div>
<!-- 2. Histogram section -->
<div class="zone boxie s" id="z-2">
<div class="title">Histogram</div>
<div id="hist">
<svg id="bar-graph"></svg>
</div>
<div class="action-link" id="hist-flatten">Flatten</div>
<div class="mini-text" id="hist-stats">
<div id="points" >Points: <span>x</span></div>
<div id="min" >Min: <span>x</span></div>
<div id="max" >Max: <span>x</span></div>
<div id="low-10" >cf-10%: <span>x</span></div>
<div id="high-10">cf-90%: <span>x</span></div>
<div id="median" >Median: <span>x</span></div>
</div>
<div class="mini-text" id="hist-adjust">
<div class="title-c">Adjust</div>
<div id="ops">
<div id="value-min">val.min: <span><input class="plain-cell s"/></span></div>
<div id="value-max">val.max: <span><input class="plain-cell s"/></span></div>
<div id="value-mid">val.mid: <span><input class="plain-cell s"/></span></div>
<div id="brightness">Brightn.:
<div>
<div class="button tiny-btn minus"><span>–</span></div>
<div class="button tiny-btn plus"><span>+</span></div>
</div>
</div>
<div id="contrast">Contrast:
<div>
<div class="button tiny-btn minus"><span>–</span></div>
<div class="button tiny-btn plus"><span>+</span></div>
</div>
</div>
</div>