How to draw shadow only in right and bottom side of object in createjs. there is no shadow over the object or on top and left side.
the shadow contains only 4 parameters
1. color of shadow
2. x
3. y
4. blur effect
but it didn't tell anything about 4 different sides.
var box = createjs.Shape();
box.shadow = new createjs.shadow('#000',4,4,5);
the above code generates some blur portion over top and left part of object.
Your example is working for me, I've tested on fiddle.net using firefox and chrome.
http://jsfiddle.net/by1vf7oc/
var box = new createjs.Shape();
box.graphics.beginFill("red").drawRect(100, 100, 100, 100);
box.shadow = new createjs.Shadow('#000', 4, 4, 5);
Try to test on these browsers, using the last version of the createjs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With