Difference between revisions of "Shadows"

From JSXGraph Wiki
Jump to: navigation, search
(New page: <jsxgraph width="500" height="500"> var p1, p2, c, board = JXG.JSXGraph.initBoard('jxgbox', {originX: 50, originY: 300, unitX: 50, unitY: 50}); p1 = board.createElement('...)
 
(shadows are very buggy)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<jsxgraph width="500" height="500">
 
<jsxgraph width="500" height="500">
var p1, p2, c,  
+
var p1, p2, c, li,
     board = JXG.JSXGraph.initBoard('jxgbox', {originX: 50, originY: 300, unitX: 50, unitY: 50});
+
     board = JXG.JSXGraph.initBoard('jxgbox', {originX: 150, originY: 300, unitX: 25, unitY: 25});
 
          
 
          
    p1 = board.createElement('point', [0, 0], {style:5,name:"A",fillColor:'blue', shadow:true});  
+
p1 = board.createElement('point', [0, 0], {style:5,name:"A",fillColor:'blue', shadow:true});  
    p2 = board.createElement('point', [0, 4], {style:5,name:"B",fillColor:'blue', shadow:true});
+
p2 = board.createElement('point', [1, 4], {style:5,name:"B",fillColor:'blue', shadow:true});
 
          
 
          
    c = board.createElement('circle',['A','B'], {shadow:true});
+
c = board.createElement('circle',['A','B'], {shadow:true});
 +
li = board.createElement('line',['A','B'], {shadow:true});
 
</jsxgraph>
 
</jsxgraph>
 +
 +
===The JavaScript code===
 +
<source lang="xml">
 +
<jsxgraph width="500" height="500">
 +
var p1, p2, c, li,
 +
    board = JXG.JSXGraph.initBoard('jxgbox', {originX: 150, originY: 300, unitX: 25, unitY: 25});
 +
       
 +
p1 = board.createElement('point', [0, 0], {style:5,name:"A",fillColor:'blue', shadow:true});
 +
p2 = board.createElement('point', [1, 4], {style:5,name:"B",fillColor:'blue', shadow:true});
 +
       
 +
c = board.createElement('circle',['A','B'], {shadow:true});
 +
li = board.createElement('line',['A','B'], {shadow:true});
 +
</jsxgraph>
 +
</source>
 +
 +
[[Category:Austragungsstueberl]]
 +
 +
Category:Examples

Latest revision as of 14:34, 8 June 2011

The JavaScript code

<jsxgraph width="500" height="500">
var p1, p2, c, li,
    board = JXG.JSXGraph.initBoard('jxgbox', {originX: 150, originY: 300, unitX: 25, unitY: 25});
        
p1 = board.createElement('point', [0, 0], {style:5,name:"A",fillColor:'blue', shadow:true}); 
p2 = board.createElement('point', [1, 4], {style:5,name:"B",fillColor:'blue', shadow:true});
        
c = board.createElement('circle',['A','B'], {shadow:true});
li = board.createElement('line',['A','B'], {shadow:true});
</jsxgraph>

Category:Examples