yiliansource / party-js

A JavaScript library to brighten up your user's site experience with visual effects!
https://party.js.org
MIT License
986 stars 45 forks source link

How to define custom colors in the jsdelivr version? #83

Closed rubengc closed 2 years ago

rubengc commented 2 years ago

Hi there and congratulations for this awesome library!

I tried unlimited ways to define custom colors in the jsdelivr version without luck.

I tried to use plain text, integers, looking any of the properties of the "party" object, but I did not found any way to define custom colors...

Could you add some samples about how to customize the colors of the effects?

rubengc commented 2 years ago

Found! The Color class is inside the party object so simply you need to use party.Color to be able to use this class!