Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
gold fish
/*
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
You can’t perform that action at this time.