最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

用js繪圖

 更新時間:2006年10月13日 00:00:00   作者:  
<object id=DirectDraw
classid="CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"
style="positiion:absolute;top:0;left:0;width:320;height:200"
>
<param name="line0001" value="繪圖指令1">
<param name="line0002" value="繪圖指令2">
...
</object>
繪圖指令分類:
(一)常見形狀
1.矩形類 //rotation是以度為單位的旋轉角度
Rect(x ,y, width, height, rotation) //矩形
Oval(x ,y, width, height, rotation) //橢圓
RoundRect(x ,y, width, height, arcWidth, arcHeight, rotation)
2.弧形類
Arc(x ,y, width, height, startAngle, arcAngle, rotation) //弧形
Pie(x ,y, width, height, startAngle, arcAngle, rotation) //餅圖
3.多邊形類
Polygon(nPoints, x1, y1, x2, y2, [x3, y3, ....], rotation) //閉合
Polyline(nPoints, x1, y1, x2, y2, [xn, yn, ....], rotation) //不閉合
(二)效果函數(shù)
1.線條效果
SetLineColor(r, g, b) //設置畫線顏色
SetLineStyle(style) //style=(1:實線;2:虛線;0:隱藏)
2.填充效果
SetFillColor(r, g, b, backr, backg, backb)
SetFillStyle(style) //style=(1:實心;2:透明;3:-;4:|;5:\;6:/;7:+;8:x)
(三)文字輸出函數(shù)
SetFont('字體',width,height,r,g,b) //設置字體
Text('要輸出的文字內容', x,y,z) //輸出文字


控制函數(shù) //定義<object>后在<script></script>里使用。
引用格式:DirectDraw.FunctionName()
rotate(x-rotation, y-rotation, z-rotation) //旋轉
scale(x-scale,y-scale,z-scale) //縮放
translate(x-coordinate,y-coordinate,z-coordinate) //平移
setIdentity() //復原
clear() //清除,清除后無法恢復!

相關文章

最新評論

西宁市| 合水县| 渑池县| 吉安县| 连城县| 武宣县| 龙游县| 健康| 抚松县| 亚东县| 武平县| 宣恩县| 逊克县| 皋兰县| 砀山县| 潮安县| 吉木乃县| 永寿县| 新巴尔虎左旗| 正安县| 维西| 苗栗市| 老河口市| 丰城市| 盐城市| 洛宁县| 永修县| 常德市| 冷水江市| 兴仁县| 北海市| 鲁山县| 左云县| 承德市| 大名县| 丰台区| 湖州市| 辽阳市| 兴国县| 宁陵县| 宁化县|