Skip to content

Instantly share code, notes, and snippets.

@stesla
Created September 3, 2011 02:24
Show Gist options
  • Save stesla/1190435 to your computer and use it in GitHub Desktop.
Save stesla/1190435 to your computer and use it in GitHub Desktop.
var paper = Raphael("path-shapes", 785, 200);
paper.path("M 150 15 L 50 180 L 250 180 Z")
.attr({fill: "gray", "stroke-width": "5px"});
paper.path("M 400 100 h -75 a 75 75 0 1 0 75 -75 z")
.attr({fill: "yellow", "stroke-width": "3px"});
paper.path("M 390 90 v -75 a 75 75 0 0 0 -75 75 z")
.attr({fill: "red", "stroke-width": "3px"});
paper.path("M 250 75 L 323 301 131 161 369 161 177 301 z")
.scale(.75, .75).translate(400, -90)
.attr({fill: "blue", stroke: "blue"});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment