web 动画
来源:互联网 发布:啥看书软件免费 编辑:程序博客网 时间:2024/05/07 11:11
var w=this.cBox.w,h=this.cBox.h,x=this.cBox.x,y=this.cBox.y;
xgd=(this.xColumns)? w/(this.xColumns-1):0;
ygd=(this.yRows)?h/(this.yRows-1):0;
this.ctx.fillStyle='silver';
for(i=xgd;i<=w;i+=xgd)
this.ctx.fillRect(x+i,y,l,h-1);
for(i=h-ygd;i>=0;i-=ygd)
this.ctx.fillRect(x+1,y+i,w,l);}
drawLine:function(index){
var line=this.series[index],
len=line.values.length;
var rate=this.cBox.h/this.yRange,
yoffset=this.yMin*rate;
if(!len) return;
var ylen=line.values[0]*rate,
bBase=this.cBox.b+yOffset;
var x=this.cBox.x,y=bBase-yLen;
this.ctx.strokeStyle=line.color;
this.ctx.lineWidth=line.width;
this.ctx.beginPath();
var tx=x,ty=y;
this.ctx.moveTo(tx,ty);
for(var i=l;i<len;i++){
yLen=line.values[i]*rate;
tx+=this.xStep,ty=bBase-yLen;
this.ctx.lineTo(tx,ty);}
this.ctx.stroke();
tx=x,ty=y;
for(var i=1;i<len;i++){
yLen=line.values[i]*rate;
tx+=this.xStep,ty=bBase-yLen;
this.drawDot(tx,ty,3,line);}}
- web动画
- web 动画
- web 动画
- web 动画
- web 动画
- Web动画性能指南
- web旋转动画
- web动画的方式requestAnimationFrame
- 【Web】CSS3动画效果制作
- 制作Web动画——动画制作工具Flash MX
- 基于web技术的高性能动画
- CSS3 Web工程师工作场景动画
- HT for Web基础动画介绍
- web 中重新播放css 动画
- HTML5探秘:用requestAnimationFrame优化Web动画
- 移动端web(1):进场动画
- web动画深入理解-requestAnimationFrame方法
- HTML5优化Web动画——requestAnimationFrame
- WM_SIZEPAREN,切分父窗口客户区。。。
- vb.net 2008 dataTable Sort()函数和Select()函数用法实例
- JavaScript中ActiveXObject
- BASH系列之四比较和判断语句
- 判断当前时间是否在某一时间段内
- web 动画
- 在C/C++代码中使用SSE等指令集的指令(3)SSE指令集基础
- Linux proc 的文件系统的源码分析
- mongodb的空间索引扩展
- Petshop4.0 超级详细介绍(三)
- 采用busybox的嵌入式Linux根文件系统的的制作方法
- web 动画
- GetLastError返回值的意义
- puppet配置之puppet.conf详解中英文对照