Creative Coding: Building Re-usable Objects
George Gally

Nice post! I have programmed in processing before and am now trying my hand at p5.js. I am discovering all the things JS lets you do and this post sure did open my eyes to this new possibility.

Only one thing, though: in the last example your `get` function returns a random colour from the `pool` array, but it is not populated neither in `add` nor in `generateWeightedList`.


Like what you read? Give Luiz Felipe Pericolo a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.