Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions content/examples/Basics/Color/ColorVariables/liveSketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
* in the program by a name, rather than a number.
*/

function describe() {
const description = "There are two sets of squares. The first set contains three squares of varying sizes stacked together. The color of the smallest square is orange, the color of the middle square is gold, and the color of the biggest square is brown. On the right of the first set is the second set, which is similar to the first. The only difference here is the color of the squares; the smallest square is gold, the middle square is brown, and the biggest square is orange."

return description;
}

function runLiveSketch(s) {
s.setup = () => {
s.createCanvas(640, 360);
Expand Down
6 changes: 6 additions & 0 deletions content/examples/Basics/Lights/Directional/liveSketch.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
function describe() {
const description = "There are two dark spheres side by side, the cursor works like a light source, when mouse moves the direction of light changes and reveals some part of spheres."

return description;
}

function runLiveSketch(s) {

s.setup = () => {
Expand Down