var u = 20; // change to make grid bigger
function setup() {
createCanvas(400, 400);
}
function draw() {
grid();
displayMousePosition();
ellipse(width/3, height/2, 60, 60);
ellipse(2*width/3, height/2, 60, 60);
ellipse(width/3, 2*height/3, 60, 60);
}
function grid() {
background(200);
stroke(220);
strokeWeight(1);
for (let x = 0; x <= width; x += u) {
for (let y = 0; y <= height; y += u) {
line(x, 0, x, height);
line(0, y, width, y);
}
}
stroke('black');
}
function displayMousePosition() {
textFont('menlo');
textSize(14);
text("x:" + mouseX, 10, 20);
text("y:" + mouseY, 10, 40);
}
-
- LA 1-Dodo-Scrap-1.1
- LA 1-Dodo-Scrap-1.2
- LA 1-Dodo-Scrap-1.3
- LA 1-Dodo-Scrap-1.4
- LA 1-Dodo-Scrap-Taijutu Symbol
- LA 1-Dodo-Scrap-Own Symbol
- LA 2-Dodo-Scrap-2.1
- LA 2-Dodo-Scrap-2.2
- LA 2-Dodo-Scrap-2.3
- LA 2-Dodo-Scrap-2.Custom Emoji
- LA 3-Dodo-Scrap-3.1
- LA 3-Dodo-Scrap-3.2
- LA 3-Dodo-Scrap-3.3
- LA 3-Dodo-Scrap-3.Album
- LA 3-Dodo-Scrap-3.Zelfbeoordeling
-
- Unit 1-Dodo-Scrap-Taijutu Symbol
- Unit 1-Dodo-Scrap-Own Symbol
- Unit 1-Dodo-Scrap-2.Custom Emoji
- Unit 1-Dodo-Scrap-3.Album
- Unit 2-Dodo-Scrap-LightSwitch Game-Paint
- Unit 3-Dodo-Scrap-Wallpaper Design
- Unit 3-Dodo-Scrap-Vision board
- Unit 3-Dodo-Scrap- Kinetic Type
- Unit 3-Dodo-Scrap- (Hollow Knight ) Sound Board + Writing Prompt
- Unit 3-Dodo-Scrap- Geese Meme Generator
- KeuzeProject-Dodo-Scrap- WeatherSystem
- -Dodo-Scrap- OpdrachtenReeks
- -Dodo-Scrap- Orb