Home >Web Front-end >JS Tutorial >Drawing with JavaScript - JS2D function set_javascript skills

Drawing with JavaScript - JS2D function set_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:21:041268browse

[Ctrl A select all Note:
If you need to introduce external Js, you need to refresh to execute ]<script> //****************** JS2D函数集示例 ******************* drawLine(20,20,300,20,"#0000cc",2,0); drawLine(20,40,300,40,"#0000cc",2,1); drawLine(20,60,300,60,"#0000cc",2,2); drawFilledRect(20,80,300,200,"009900"); drawRect(20,220,220,320,"ff0000",2,0); drawRect(240,220,440,320,"ff0000",2,1); drawRect(460,220,660,320,"ff0000",2,2); drawOval(250,450,120,50,"006600",1,1); drawOval(250,650,120,120,"006600",2,0.5); drawPoly(200,900,100,3,"ff8800",2,0); drawPoly(400,900,100,4,"ff8800",2,1); drawPoly(600,900,100,5,"ff8800",2,2); drawPoly(200,1100,100,6,"ff8800",2,0); drawPoly(400,1100,100,7,"ff8800",2,1); drawPoly(600,1100,100,12,"ff8800",2,2); </script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn