-
Notifications
You must be signed in to change notification settings - Fork 0
/
spiral.pde
57 lines (40 loc) · 902 Bytes
/
spiral.pde
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
import controlP5.*; //<>// //<>//
import processing.pdf.*;
import processing.dxf.*;
import processing.svg.*;
Data data;
DataGUI dataGui;
DrawingGenerator drawer;
PGraphics current_graphics;
ControlP5 cp5;
void setup()
{
size(1200, 800);
drawer = new DrawingGenerator();
data = new Data();
dataGui = new DataGUI();
setupControls();
data.LoadJson("./Saved/default.json");
data.name = "default";
dataGui.setGUIValues();
surface.setResizable(true);
}
void setupControls()
{
cp5 = new ControlP5(this);
cp5.getTab("default").setLabel("Hide GUI");
dataGui.setupControls( cp5);
addFileTab();
}
void draw()
{
start_draw();
if (!record && data.changed)
{
dataGui.updateUI();
}
drawer.center = new PVector(width/2, height/2);
drawer.data = data;
drawer.draw();
end_draw();
}