canvas

draw a line



image.png

draw a rect or a angle



canvas_第1张图片
image.png

draw a rect simply



canvas_第2张图片
image.png

something is wrong?!



canvas_第3张图片
image.png

why is black?
change it to red!



canvas_第4张图片
image.png

ok ,got it !

draw a green rect



canvas_第5张图片
image.png

draw a xx rect



canvas_第6张图片
image.png

draw a circle



and we got nothing! we need fill() method. why ? no reason. maybe because there isn't a fillarc() method!



canvas_第7张图片
image.png

darw a semi cycle

just set the start angle and the end angle


canvas_第8张图片
image.png

你可能感兴趣的:(canvas)