Skip to content

Unlock custom brushes, natural fill effects and intuitive hatching in p5.js

Updated teaser

acamposuribe32375d519376
diff --git a/README.md b/README.md
index bce2e23..ebc4224 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-![Teaser](/images/teaser.gif)
+![Teaser](/images/p5brush.gif)
# p5.brush.js
diff --git a/example/index.html b/example/index.html
index d735ecd..b916569 100644
--- a/example/index.html
+++ b/example/index.html
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>p5.brush.js Example</title>
+ <title>p5.brush.js Teaser</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.min.js"></script>
<script src="../dist/p5.brush.js"></script>
<link rel="stylesheet" href="./style.css" />
diff --git a/example/sketch.js b/example/sketch.js
index da37487..7130063 100644
--- a/example/sketch.js
+++ b/example/sketch.js
@@ -46,11 +46,12 @@ async function setup() {
for (let i = 0; i < 150; i++) seeds.push(random())
background("#fffceb")
+
+ frameRate(30)
}
function draw() {
-
- frameRate(30)
+
const t = frameCount / 30
let scene = floor(t / 5) % 6
textFont(font)
diff --git a/images/p5brush.gif b/images/p5brush.gif
new file mode 100644
index 0000000..baec8c7
Binary files /dev/null and b/images/p5brush.gif differ