diff options
author | Stanislav (Stanley) Modrak <44023416+smith558@users.noreply.github.com> | 2023-03-08 09:35:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-08 09:35:48 +0000 |
commit | 4c79407041c1a1969815368c11003cb5ea20a837 (patch) | |
tree | c464ca387191c91f0dc2572ef4b281a3c7aa1844 /p5.html.markdown | |
parent | e3ee5b81faad348586ff50dda2100046bd17591f (diff) | |
parent | fbaa905e23f26d20b37a3886dd8e07cd6edb8680 (diff) |
Merge branch 'master' into patch-4
Diffstat (limited to 'p5.html.markdown')
-rw-r--r-- | p5.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p5.html.markdown b/p5.html.markdown index f6084b98..d36d417f 100644 --- a/p5.html.markdown +++ b/p5.html.markdown @@ -29,11 +29,11 @@ function setup() { } function draw() { - ellipse(10, 10, 50, 50); // creates a ellipse at the 10px from the left and 10px from the top with width adn height as 50 each, so its basically a circle. + ellipse(10, 10, 50, 50); // creates a ellipse at the 10px from the left and 10px from the top with width and height as 50 each, so its basically a circle. //remember in p5.js the origin is at the top-left corner of the canvas if (mouseIsPressed) { - // mouseIsPressed is a boolean variable that changes to true if the mouse buttton is pressed down at that instant + // mouseIsPressed is a boolean variable that changes to true if the mouse button is pressed down at that instant fill(0); // fill refers to the innner color or filling color of whatever shape you are going to draw next } else { |