2 0 7 3.5 -1.5 7 P6P1P5P6 AB 7 2 8 11 0 8 P4P5P3P4 CD △ x ymax △ x ymax △ x ymax △ x ymax 7 6P4P5 P5P6 5 4 3 2 1 0 P1P2 P2P3 8 5 -3 " /> 2 0 7 3.5 -1.5 7 P6P1P5P6 AB 7 2 8 11 0 8 P4P5P3P4 CD △ x ymax △ x ymax △ x ymax △ x ymax 7 6P4P5 P5P6 5 4 3 2 1 0 P1P2 P2P3 8 5 -3 " />

全文预览

数字媒体学院计算机图形学教案

上传者:随心@流浪 |  格式:doc  |  页数:96 |  大小:0KB

文档介绍
set="UTF-8"> 2 0 7 3.5 -1.5 7 P6P1P5P6 AB 7 2 8 11 0 8 P4P5P3P4 CD △ x ymax △ x ymax △ x ymax △ x ymax 7 6P4P5 P5P6 5 4 3 2 1 0 P1P2 P2P3 8 5 -3 2 5 3 3 2 0 7 11 0 8 5 2 8 5 -1.5 7 P6P1 P3P4;)( 1 11a bxcyba x iiii????????a bx??? 123 P1P2 P3P4 <title> 多边形扫描转换算法</title> </head> <body> <canvas id="huabu" width="800" height="600"></canvas> </body> <script src="LList2.js"></script> <script> var canvas = document.getElementById("huabu"); // 重设画布在页面中的大小范围 var width=window.innerWidth; var height=window.innerHeight; canvas.width=width; canvas.height=height; var ctx = canvas.getContext("2d"); // 栅格大小 var size = 12; // 是否显示坐标数值 var isShowCoordinate=false; // 是否显示辅助图形 var isShowTips=false; // 扫描时间间隔 var time=100;

收藏

分享

举报
下载此文档