ASCII2MathML-SVG: Buttons & Sliders

View Fullscreen

agraph
  setShowCoordinates(false);
  setViewport(1000,400,0);
  setGraphArea(0,30,0,12);
  initPicture();
  fill="#DDDDDD";
  rect([0,0],[30,12],"background");
  createButton([1,3],[4.5,4.5],"MyButton",.25,.25,"My Button","switch");
  createButton([6,3],[9.5,4.5],"MyButton2",.75,.75,"Deactivate","click");
  createButton([12,3],[14.5,4.5],"MyButton3",.75,.75,"Activate","click");
  createSliderV([21.5,3],[23.5,12],"MySlider",.25,.25,"Slider 1",0.85,1.5,1.2,0.6,-5,5,null,null,null,null,"blue","green");
  createSliderV([24.5,3],[26.5,12],"MySlider2",.25,.25,"Slider 2",0.85,1.5,1.2,0.6,null,null,null,null,null,null,"blue","green");
  createSliderV([27.5,3],[29.5,12],"MySlider3",.25,.25,"Slider 3",0.85,1.5,1.2,0.6,5,-5,null,null,null,null,"blue","green");
  createSliderH([0.1,0.1],[20.1,2.4],"MySlider4",.25,.25,"Slider 4",1,0.5,0.4,0.6,5,-5,null,null,null,null,"blue","green");
endagraph

Press the shift key or the left mouse button when moving the slider.

The original ASCIIMathML and ASCIIsvg scripts have been developed by by Peter Jipsen, Chapman University (jipsen@chapman.edu)
LaTeXMathML has been developed by Douglas Woodall (and exteded by Jeff Knisley), based on ASCIIMathML
The version of ASCIIMathML used here, is a modified and extended version, developed by Dr.ir. S.A. Miedema
Other sources: An ASCIIsvg manual by Robert Fant.  An ASCIIsvg manual by Peter Jipsen. An ASCIIMathML manual by James Gray.

Plugins and fonts required (depending on your browser): MIT MathML font packages, MathPlayer, Adobe SVGviewer
Look at: http://www.w3.org/TR/SVG11/ for detailed information about SVG.
Look at: http://www.w3.org/Math/ for detailed information about MathML

Copyright © Dr.ir. S.A. Miedema, Delft University of Technology, Faculty of Mechanical Engineering, Marine Technology & Materials Science
Department of Marine & Transport Technology, The Chair of Dredging Engineering