Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/html/lib/canvas/Circle.js
blob: dfe8283b6f9511fe69bc3ff8f3b82be1bd275c8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**
	Canvas control that draws a circle fitting the parameters specified in the
	_bounds_ property.
*/
enyo.kind({
	name: "enyo.canvas.Circle",
	kind: enyo.canvas.Shape,
	//@ protected
	renderSelf: function(ctx) {
		ctx.beginPath();
		ctx.arc(this.bounds.l, this.bounds.t, this.bounds.w, 0, Math.PI*2);
		this.draw(ctx);
	}
});