Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function drawGrid() {
- stroke(200);
- strokeWeight(1);
- fill(120);
- for (var x = -width; x < width; x += 40) {
- line(x, -height, x, height);
- text(x, x + 1, 12);
- }
- for (var y = -height; y < height; y += 40) {
- line(-width, y, width, y);
- text(y, 1, y + 12);
- }
- }
Add Comment
Please, Sign In to add comment