H
H
hadaev_ivan2014-08-26 15:48:04
JavaScript
hadaev_ivan, 2014-08-26 15:48:04

Fabric.js How to fill an area outside of a shape with a different color and transparency?

I am using fabric.js. I have a square, it has its own transparency, I need a fill around it, but with a different transparency. That is, it is impossible to impose a square on top. Please tell me how to do it?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Krasnodemsky, 2014-08-26
@Prognosticator

Overlay from below :P
Use a background with the desired transparency.
Attach a picture of what you are doing, well, the code will not hurt.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question