Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
acamposuribe committed Oct 27, 2024
1 parent 7452453 commit cb491d8
Show file tree
Hide file tree
Showing 6 changed files with 2,814 additions and 2,438 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Embrace the full potential of your creative coding projects with p5.brush.js, wh

## Installation

Important note: p5.brush requires p5.js 1.11 or higher

### Local Installation

To set up your project, add `p5.min.js` `p5.brush.js` to your HTML file. You can download the last version of the p5.brush.js library in the [dist](/dist) folder.
Expand All @@ -41,7 +43,7 @@ Alternatively, you can link to a `p5.brush.js` file hosted online. All versions

```html
<!-- Online version of p5.brush -->
<script src="https://cdn.jsdelivr.net/npm/p5.brush@1.1.1/dist/p5.brush.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5.brush"></script>
```

### Install with NPM and other modular-based apps
Expand Down
2 changes: 1 addition & 1 deletion dist/p5.brush.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions example/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<head>
<title>p5.brush.js Example</title>
<script src="https://cdn.jsdelivr.net/npm/p5@1.9.0/lib/p5.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5.brush@latest/dist/p5.brush.js"></script>
<link rel="stylesheet" href="./style.css">
<script src="https://cdn.jsdelivr.net/npm/p5@1.11.0/lib/p5.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5.brush"></script>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<script src="./sketch.js"></script>
</body>
</html>
</html>
1 change: 1 addition & 0 deletions example/p5.brush.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p5.brush",
"version": "1.1.3",
"version": "1.1.4",
"description": "Unlock custom brushes, natural fill effects and intuitive hatching in p5.js",
"main": "src/index.js",
"module": "src/index.js",
Expand Down Expand Up @@ -36,7 +36,7 @@
"rollup-plugin-cleanup": "^3.2.1"
},
"peerDependencies": {
"p5": "^1.9.0"
"p5": "^1.11.0"
},
"dependencies": {
"esm-seedrandom": "^3.0.5"
Expand Down
Loading

0 comments on commit cb491d8

Please sign in to comment.