开发者

Resize shapes on the fly

Is possible resize geometric 开发者_如何学Pythonshapes on the fly using JavaScript?

Example: I have a rectangle and two fields (length and height).

When user define some measure, resize it.

I thought OpenGL, WebGL, SVG, VRML .. I was thinking something that would works well on browsers without use plugins.


Here you go:

http://raphaeljs.com/

Use it wisely :)

Hint: You can use path for random shapes.

Here's a simple example for your amusement: http://jsfiddle.net/HeJDJ/


Did you have a look at the Raphael.JS library? SVG is pretty much cross-platform, and does not need any plugin. It should work for your application.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜