Skip to content

Instantly share code, notes, and snippets.

@yokotak0527
Created July 9, 2013 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yokotak0527/5956263 to your computer and use it in GitHub Desktop.
Save yokotak0527/5956263 to your computer and use it in GitHub Desktop.
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