-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgridspace.pde
67 lines (53 loc) · 1.02 KB
/
gridspace.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
58
59
60
61
62
/*
*
* GridSpace - by @hspencer
* v1.0.0
*
*/
import processing.pdf.*;
PFont font;
String verb = "";
ArrayList l;
PImage pal;
int ancho, alto;
float margen = 100;
float gridSpacer = 10;
float cw = gridSpacer/3;
float tension = 0;
int gridX, gridY;
Punto[][] p;
boolean vuelveaGrilla = false;
boolean Repele = true;
int tp = 3;
int tg = 1;
boolean dibujar = true;
boolean pdf = false;
boolean fondoClaro = true;
int pag = 0;
// Colores
color fondo = color(250);
color grilla = color(50, 50);
color punto = color(0);
void setup(){
ancho = displayWidth;
alto = displayHeight;
gridX = round((float)(ancho - 2*margen)/gridSpacer);
gridY = round((float)(alto - 2*margen)/gridSpacer);
p = new Punto[gridX][gridY];
size(ancho, alto);
createGrid();
//smooth();
noCursor();
l = new ArrayList();
pal = loadImage("pal.png");
strokeCap(SQUARE);
font = createFont("Lucida Grande", 11);
textFont(font, 11);
}
void draw(){
todo();
fill(255);
//text(verb, 30, alto-50);
mouse();
smooth();
}