Skip to content

Commit f32e706

Browse files
committed
saturation example describe added
1 parent bd5e9fe commit f32e706

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

content/examples/Basics/Color/Saturation/liveSketch.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ function runLiveSketch(s) {
1515
s.createCanvas(640, 360);
1616
s.colorMode(s.HSB, s.width, s.height, 100);
1717
s.noStroke();
18+
s.describe(
19+
'There is a canvas with a series of vertical bars. As the mouse moves over each bar, the saturation of the color changes. The bar is determined by the x-coordinate of the mouse and the saturation of the bar is determined by the y-coordinate of the mouse. As the move mouse up in the bar, the saturation increases. As the mouse moves down in the bar, the saturation decreases.'
20+
);
1821
};
1922

2023
s.draw = () => {

0 commit comments

Comments
 (0)