mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
test
This commit is contained in:
parent
33df52201c
commit
3dec61a12e
@ -10,8 +10,8 @@ function draw() {
|
||||
rect(rectX, rectY, 40, 40);
|
||||
//For (var BEGIN; END; INTERVAL){
|
||||
//DO SOMETHING }
|
||||
for (var x = 0; x < width; x += width / 40) {
|
||||
for (var y = 0; y < height; y += height / 40) {
|
||||
for (var x = 0; x < width; x += width / windowWidth) {
|
||||
for (var y = 0; y < height; y += height / windowHeight) {
|
||||
stroke(0);
|
||||
strokeWeight(1);
|
||||
line(x, 0, x, height);
|
||||
@ -44,5 +44,13 @@ function keyReleased() {
|
||||
}
|
||||
|
||||
function windowResized() {
|
||||
for (var x = 0; x < width; x += width / windowWidth) {
|
||||
for (var y = 0; y < height; y += height / windowHeight) {
|
||||
stroke(0);
|
||||
strokeWeight(1);
|
||||
line(x, 0, x, height);
|
||||
line(0, y, width, y);
|
||||
}
|
||||
}
|
||||
resizeCanvas(windowWidth, windowHeight);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user