Created
July 9, 2013 10:16
-
-
Save yokotak0527/5956263 to your computer and use it in GitHub Desktop.
gold fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
var shadow_cvs,shadow_ctx,box_blur,bounds; | |
shadow_cvs = document.createElement('canvas'); | |
shadow_ctx = shadow_cvs.getContext('2d'); | |
this.body.draw(shadow_ctx,true); | |
this.shadow_body = new cjs.Bitmap(shadow_cvs); | |
this.shadow_body.set({ | |
x:7, | |
y:5, | |
scaleX:1.1, | |
scaleY:1.1 | |
}); | |
box_blur = new cjs.BoxBlurFilter(2,2,1); | |
this.shadow_body.filters = [ | |
new cjs.ColorFilter(0,0,0,0.2), | |
box_blur | |
]; | |
bounds = box_blur.getBounds(); | |
this.shadow_body.cache( | |
size.x + bounds.x, | |
size.y + bounds.y, | |
size.width + bounds.width, | |
size.height+ bounds.height, | |
1 | |
); | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment