Minggu, 14 November 2010
HTML5 Recipes: Circles and Arcs
In this recipe, we shall take a look at how to draw arcs and circles. The Canvas API provides us with the useful method() function that we can use to do that.The method signature is as follows: arc(x,y,radius,startAngle, endAngle,bAntiClockwise), where: x,y are the center co-ordinates of the arcstartAngle and endAngle are specified in radians. For e.g. if you wish to draw a semi-circle, you can
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar