Compare commits

..

No commits in common. "ca494f3c0f201092d16a42ef76c385bae338003a" and "3f86d452a71b0926a7259bb6e6af51ade1ce9677" have entirely different histories.

2 changed files with 0 additions and 34 deletions

View File

@ -1,31 +0,0 @@
# Ghost Writing: Text, Arrays, Randomness
```javascript
// Array + Index!
var NAMES = ["David", "Karin", "Sigrid", "Nanna", "Laura", "Maaike"];
var INDEX = 0;
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
}
function keyTyped() {
if(key == 'x') {
print("Hi " + NAMES[0] + "!");
}
}
// Reference: https://p5js.org/reference/
```
```javascript
["David", "Karin", "Sigrid", "Nanna", "Laura", "Maaikke"] <--- Array (var NAMES)
| | | | | |
0 1 2 3 4 5 <--- indices (var INDEX)
```

BIN
img/love-letter.png (Stored with Git LFS)

Binary file not shown.