Skip to content

Commit

Permalink
Merge branch 'master' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyketcham authored Jan 17, 2021
2 parents 4abca8a + 4591612 commit ffa1c32
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
Trying to get <a href="https://p5js.org/">p5</a> up and running in [Svelte](https://svelte.dev/) can be a pain. So here's an absolutely dead simple way of tossing it into your project.

The API is super simple; you get a <code>P5</code> component which accepts a <code>sketch</code> prop. You can make use of Svelte's reactivity system to bind props or params within your p5 sketch just as you would with regular Svelte! You can even have multiple p5 components per page without any scoping issues!

🌱 <a href="https://svelte.dev/repl/c5fd1d8347cd4e47afe0e519aedbb3a5?version=3.31.2" target="_blank">Simple Demo</a>
</p>
</div>

Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,23 @@
"p5": "*"
},
"keywords": [
"svelte"
"svelte",
"svelte-component",
"p5",
"processing",
"components"
],
"files": [
"src",
"dist"
],
"description": "A p5 component to seamlessly toss into existing Svelte projects",
"description": "A component for easily using p5 sketches in Svelte. Allows passing Svelte props into a p5 sketch.",
"version": "2.2.0-0",
"repository": {
"type": "git",
"url": "git+/~https://github.com/tonyketcham/p5-svelte.git"
},
"author": "Tony Ketcham",
"author": "Tony Ketcham <ketcham.dev@gmail.com>",
"license": "MIT",
"bugs": {
"url": "/~https://github.com/tonyketcham/p5-svelte/issues"
Expand Down

0 comments on commit ffa1c32

Please sign in to comment.