collection
This commit is contained in:
parent
6d4b077d6e
commit
de06ae0897
14
collection/sketch-1.0.js
Normal file
14
collection/sketch-1.0.js
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
// Sketch 1.0: Key Events!
|
||||||
|
|
||||||
|
function setup() {
|
||||||
|
createCanvas(400, 400);
|
||||||
|
}
|
||||||
|
|
||||||
|
function draw() {
|
||||||
|
background(220);
|
||||||
|
if(keyIsPressed) {
|
||||||
|
print("Hello World"); // see the console below ↓
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reference: https://p5js.org/reference/
|
||||||
Loading…
x
Reference in New Issue
Block a user