javascriptlinedrawing_src

所属分类:JavaScript/JQuery
开发工具:JavaScript
文件大小:5KB
下载次数:1
上传日期:2007-11-29 08:54:23
上 传 者quyawu
说明:  In this article, I want to explain and deduce the line drawing algorithm by Bresenham. Afterwards, I will show an optimized version which can be used to draw lines in Gecko based browsers like Mozilla or Firefox and Microsoft s Internet Explorer. As you know, HTML itself is not able to describe lines. Therefore, there is no built-in features in the above-mentioned browsers for drawing lines. By implementing the Bresenham algorithm with JavaScript while applying some tricks, we will be able to draw lines in a good manner in respect to the browser s runtime and memory footprints.
(In this article, I want to explain and deduce the line drawing algorithm by Bresenham. Afterwards, I will show an optimized version which can be used to draw lines in Gecko based browsers like Mozilla or Firefox and Microsoft s Internet Explorer. As you know, HTML itself is not able to describe lines. Therefore, there is no built-in features in the above-mentioned browsers for drawing lines. By implementing the Bresenham algorithm with JavaScript while applying some tricks, we will be able to draw lines in a good manner in respect to the browser s runtime and memory footprints.)

文件列表:
src\article_illustrations.html (6326, 2006-11-26)
src\graphics.js (3514, 2006-11-26)
src\graphicstest.html (3038, 2006-11-26)

近期下载者

相关文件


收藏者