Kinrany / vue-p5

Vue component for p5.js
125 stars 16 forks source link

Utilizing third-party libraries? #8

Open AngelOD opened 6 years ago

AngelOD commented 6 years ago

There are a fair few extension libraries available for p5.js and I think it would be nice with an example on how to use these with vue-p5.

Kinrany commented 6 years ago

Indeed it would!
Which ones do you use?

AngelOD commented 6 years ago

It varies but https://github.com/bitcraftlab/p5.gui and http://p5play.molleindustria.org/ are both libraries I've used in the past. Any library from https://p5js.org/libraries/ is viable, however. :)

Kinrany commented 6 years ago

Hmm, it seems there are two basic use cases here:

  1. Higher level graphics libraries that draw on p5's canvas
  2. GUI libraries that manipulate DOM

I'm assuming that anyone who wants to use vue-p5 has at least a little bit of experience with Vue. Perhaps a guide to replacing a GUI library with equivalent Vue components would be more appropriate.

Unfortunately I have no experience with any part of p5 other than it's core drawing capabilities. There might be cases where such a replacement isn't possible, I can't tell.

Lucashw68 commented 4 years ago

Take a look at https://github.com/uber1337mate/vue-p5-play, he just wrapped the lib in a package but I have no clue how to use it. Any idea?