最新国产好看的视频,伊人天堂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是以度為單位的旋轉(zhuǎn)角度
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) //設(shè)置畫線顏色
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) //設(shè)置字體
Text('要輸出的文字內(nèi)容', x,y,z) //輸出文字


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

相關(guān)文章

最新評論

布尔津县| 隆尧县| 盘山县| 靖西县| 永清县| 德州市| 赣榆县| 仁怀市| 搜索| 平罗县| 邳州市| 新宁县| 苏尼特左旗| 梁山县| 荔浦县| 云龙县| 天全县| 湄潭县| 什邡市| 邵阳县| 汶川县| 南丹县| 巴林右旗| 中卫市| 三亚市| 洞口县| 宝鸡市| 乐山市| 临颍县| 延安市| 宜黄县| 德格县| 竹北市| 泸溪县| 彭州市| 长岭县| 义马市| 静海县| 潍坊市| 湘阴县| 孝昌县|