collection
This commit is contained in:
@@ -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/
|
||||||
Reference in New Issue
Block a user