Accueil › Forums › Programmation WIMS › Programmation d’exercices OEF › Y a-t'il un inconvénient à utiliser SVG? › Répondre à : Y a-t'il un inconvénient à utiliser SVG?
Hi,
The latest svn version of wims allows creation of html5 canvas images…as you probably know these images are pixel perfect (just like SVG). On zooming / dragging -for example- a new png image is created by the canvas engine of the browser.
All modern browsers support canvas.
The canvasdraw syntax is comparable (but not always compatible) with the wims included flydraw program (used for serverside creation of bitmap images)
!exec canvasdraw
size 400,400
xrange -10,10
yrange -10,10
linewidth 2
rect x0,y0,x1,y1,blue
fontfamily italic 16px Ariel
string green,-10,-10,Calculate something
To see modules making use of canvasdraw (as replacement for java applet), see
http://wims.math.leidenuniv.nl/canvas
kind regards,
joke