Skip to content

Instantly share code, notes, and snippets.

@zoranf
Created May 23, 2013 01:20
Show Gist options
  • Save zoranf/5632156 to your computer and use it in GitHub Desktop.
Save zoranf/5632156 to your computer and use it in GitHub Desktop.
var pc = [
{ card: "a1", x: 10, y: 10, width: 146, height: 220, round: 10 },
{ card: "a2", x: 161, y: 10, width: 146, height: 220, round: 10 },
{ card: "a3", x: 312, y: 10, width: 146, height: 220, round: 10 },
];
for (a = 0; a < 2; a++) {
paper.image("images/schnapsen/" + pc[a].card + ".png", pc[a].x, pc[a].y, pc[a].width, pc[a].height).paper.rect(pc[a].x, pc[a].y, pc[a].width, pc[a].height, pc[a].round).attr({
'stroke-width': 0
}).glow({
width: 2,
fill: false,
opacity: .1,
offsetx: 0,
offsety: 0,
color: 'black'
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment