v1.12.0

JSXGraph – handling images and texts

Posted on January 2, 2011 by Alfred Wassermann

Dear friends of JSXGraph,

the upcoming release 0.83 0.90 of JSXGraph contains the long awaited better support of images. Finally!

An image can be included in JSXGraph by specifying an URL of an image, its lower left corner and its height and width. The coordinates and lengths are given in user coordinates, see the static image example in our wiki. With version 0.83 all these entries can be given by functions, see the example Dynamic Image I in our wiki.

But not only the position and the dimensions of the image can be given by functions, also the URL and its opacity value accept functions as defining parameter, as demonstrated in Dynamic Image II in the wiki.

But we even can go further. Since one of the first releases, JSXGraph supports projective transformations applied to points. Starting with version 0.83, transformations may also be applied to images and even texts! Albeit, at the moment only affine transformations, i.e. translation, rotation, reflection, scaling, skew, are supported on images texts.

This enables countless new possibilities. There are two examples in our wiki:

At the moment, there are still restrictions on the use of transformations of texts in JSXGraph:

Happy JSXGraphing,

Alfred

To all posts