divtastic

Divtastic


Simple non canvas haxe javascript library to allow rapid development.


http://code.google.com/p/divtastic/


For instance you can create a dragable circle without needing Canvas, SVG, WebGL or any other fancy new technology.
// ( currently untested, and not yet working in IE8 )
package;
import divtastic.js.DisplayDiv ;
import divtastic.js.Browser ;
using divtastic.js.Browser ;
class Test
{   
    static function main(){ new Test(); }
    function new()
    {
        var circle      = new DisplayDiv() ;
        circle.x        = 100;
        circle.y        = 100;
        circle.drawGradElipse( 0, 0, 30, 30, 0x0000ff, 0x0000ff );
        circle.setupDrag();
        addChild( circle ) ;
    }
    
}

In the repository there are several more complex examples, a few are shown below.





version #11988, modified 2011-11-30 15:41:23 by JLM