WEB 图画 -- wz_jsgraphics 笔记

1. 开始

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
<title>TEST</title>
 
<script type="text/javascript" src="wz_jsgraphics.js"></script>
 
</head>
 
<body>
   
<div id="myCanvas" style="position:relative;height:250px;width:100%;"></div> 
 
</body>
</html>

<script type="text/javascript">
<!--

var jg = new jsGraphics("myCanvas");

jg.setColor(
"#00aaaa");
jg.fillArc(
100,200,200,150,0,20);

jg.paint();


//-->
</script> 

你可能感兴趣的:(WEB 图画 -- wz_jsgraphics 笔记)