lufylegend库件-画图 画文字
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script type="text/javascript" src="lufylegend-1.7.6.min.js"></script>
<title>Document</title>
</head>
<body>
<div id="mylegend">Laoding...</div>
<script>
init(50,"mylegend",500,350,main);
function main()
{
alert("lefylegend start");
var graphics=new LGraphics();
addChild(graphics);
graphics.drawArc(1,'#ff6666',[160,160,50,0,360*360*Math.PI/180],true,'#cc0000');
graphics.drawVertices(1,'#ff6666',[[150,20],[50,10],[80,80],[30,50]],true,'#cc0033');
graphics.drawRect(1,'#ff6666',[150,40,30,20],true,'#ff0099');
var layer=new LSprite();
addChild(layer);
var field=new LTextField();
field.x=190;
field.y=50;
field.size=25;
field.color='#ff0033';
field.weight="bolder";
field.text="Hello world";
layer.addChild(field);
}
</script>
</body>
</html>