pacman icon

This commit is contained in:
Nils Schneider 2012-06-16 04:06:32 +02:00
parent 5a64cd6cf3
commit 41410d53ab

View file

@ -62,8 +62,18 @@ var style_btn = cp.append("button")
cp.append("button") cp.append("button")
.attr("class", "btn") .attr("class", "btn")
.attr("value", "reload") .attr("value", "reload")
.text("Click me!")
.on("click", pacman) .on("click", pacman)
.append("svg")
.attr("width", 12)
.attr("height", 12)
.append("path")
.attr("d", d3.svg.arc().innerRadius(0)
.outerRadius(5)
.endAngle(-Math.PI/4 + Math.PI/2 + 2*Math.PI)
.startAngle(Math.PI/4 + Math.PI/2))
.attr("fill", "#888")
.attr("transform", "translate(6,7)")
var btns = cp.append("div") var btns = cp.append("div")
.attr("class", "btn-group") .attr("class", "btn-group")