Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Is it possible for the API to create transparent graphics (like auras), except in shapes other than circles and squares?

Just curious, because if the answer is "yes" then that might open up some interesting possibilities :-)
1634299755
David M.
Pro
API Scripter
Yes, you should be able to create any SVG ( Scalable Vector Graphics ) path with the createObj function. Just set the fillColor property to an html color that includes transparency (#RRGGBB AA ). The trickiest part is calculating the coords and formatting the path JSON properly.
1634305761
The Aaron
Roll20 Production Team
API Scripter
Look at WeaponArcs for an example of a script that does this. 
The Aaron said: Look at WeaponArcs for an example of a script that does this.  That's exactly what I needed! Thank you so much! :-D ( Both for telling me about it, and for creating that awesome script in the first place!!! :-D )
1634314150
The Aaron
Roll20 Production Team
API Scripter
No problem!