[Suggestion] New Feature: transparency.

Apr 2, 2013 at 7:36 AM
I read about the automatic feature that let an object transparent when an object is passing behind it, and it is cool.

But it can be cool also to have this feature to be permanently activable on a sheet. For example, if I draw a window with glass, I can let it to be always with opacity 50%. Or a sheet representing water, can be always 75% of opacity, showing what is on the bottom of the lake.
Coordinator
Apr 2, 2013 at 6:50 PM
You can use transparency by drawing on the sheet's context with a specific alpha value, like the following:
      var sheet3 = new sheetengine.Sheet({x:150,y:0,z:40}, {alphaD:90,betaD:0,gammaD:0}, {w:40,h:40});
      sheet3.context.fillStyle = '#FFF';
      sheet3.context.globalAlpha = 0.5;
      sheet3.context.fillRect(0,0,40,40);
The fully transparent colors are tested and work, enabling the definition of arbitrary shapes beside rectangular sheets. The above code also seems to work, however there might be some issues with shadows, I have not tested all the scenarios yet. I would suggest you try the above method for glass or water surfaces and let me know if you run into display errors or other issues.
Apr 2, 2013 at 8:30 PM
I'll try it for sure. I'll try also if it works with images ... ;)