jsDraw2DX Test

The tutor tests graphics with the jsDraw2DX library.


jsDraw2DX is a graphics library for JavaScript. I’d call it object-oriented: for programmers used to that style, it may be very intuitive. The tilted text above was generated from the following code:

var gr0=new jxGraphics(document.getElementById(“graph0”));

var col0=new jxColor(“#770077″);

var pen0=new jxPen(col0, ‘2px’);

var font0=new jxFont(‘serif’);

var brush0=new jxBrush(col0);

font0.size=”28px”;

var text0= new jxText(new jxPoint(85,105), “jsDraw2DX”, font0, pen0, brush0,35);

text0.draw(gr0);

document.getElementById(“graph0″).style.margin=”auto”;

I’ll be talking more about JavaScript graphics in future posts:)

Source:

jsDraw2DX.js

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Tagged with: ,

Leave a Reply