Skip to content

Commit 581325b

Browse files
committed
Final draft
- Add * for JSDoc - Edit assistive description - Remove space from comment
1 parent e86d9c5 commit 581325b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples/curated/21_Constrain.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/*
1+
/**
22
* @name Constrain
3-
* @description This example draws a circle as the mouse position but
3+
* @description This example draws a circle as the cursor's position but
44
* keeps the circle within a rectangle. It does so by passing the
55
* mouse's coordinates into the
66
* <a href="https://p5js.org/reference/#/p5/constrain" target="_blank">constrain()</a>
@@ -14,7 +14,7 @@ let radius = 24;
1414
let edge = 100;
1515

1616
// Distance between center of circle and edge of canvas
17-
// when circle is at edge of rectangle
17+
// when circle is at edge of rectangle
1818
let inner = edge + radius;
1919

2020
function setup() {
@@ -28,7 +28,7 @@ function setup() {
2828
rectMode(CORNERS);
2929

3030
describe(
31-
'Pink rectangle on a grey background. A user uses their mouse to move a white circle within the pink rectangle.'
31+
'Pink rectangle on a grey background. The cursor moves a white circle within the pink rectangle.'
3232
);
3333
}
3434

examples/curated/21_Constrain.png

8.44 KB
Loading

0 commit comments

Comments
 (0)