RacketDrawingToolkit.js

A javascript implementation of the Racket Drawing Toolkit.
Implements:
Feel free to try out the API manually:
Open a javascript console, and refer to functions of the context object. For example, if you'd like to use the draw-rounded-rectangle function, you would type context.drawRoundedRectangle(0,0,100,100,30). Any input that requires a list (new LinearGradient(), for example) should instead be passed a javascript array. Colors are passed as color% objects. Images are passed as bitmap% objects. For examples of API calls, see tests.js for details. Any contexts you add (through new dc() or new bitmap_dc()) can be bound to a variable, and their canvas can be added to the document through normal DOM methods document.body.appendChild(context.canvas).