How to change opacity?

Category: Functions

Last updated 3 months ago

Julian Rowse

Julian Rowse Asked 10 months ago

How to change the fill opacity? Thanks!


Jeff Plumb

Jeff Plumb Answered 3 months ago

To change the fill opacity you pass in a fourth parameter to the function. For example:

fill(220, 50, 180, 0.5

The opacity parameter should have a value from 0 (fully transparent) to 1 (no transparency). You can find out more on the reference page.


Notify me of updates
Add to Favourites
Back to Questions

Thoughts on this question

Julian Rowse

Julian Rowse Posted 3 months ago

Thank you!



Become a free member to post a comment about this question.