Images and Transformations: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 7: Line 7:
   var p0 = brd.create('point', [0,0], {style:5, name:'offset'});  
   var p0 = brd.create('point', [0,0], {style:5, name:'offset'});  
   var p1 = brd.create('point', [3,0], {style:5, name:'rotate+scale'});  
   var p1 = brd.create('point', [3,0], {style:5, name:'rotate+scale'});  
   var li = brd.create('line', [p0,p1]);  
   var li = brd.create('segment', [p0,p1] {dash:2});           // Just for illustration
   var im = brd.create('image',[urlImg, [0,0], [3,3]]);
   var im = brd.create('image',[urlImg, [0,0], [3,3]]);
   //  
   //  

Revision as of 21:16, 1 January 2011

Here is an example where images are combined with transformations.

The JavaScript code