N-gones: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<html>
<html>
<link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" />
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<form><textarea id="inputtext" rows=12 cols=35 wrap="off" style="width:600px;">
<form><textarea id="inputtext" rows=12 cols=35 wrap="off" style="width:600px;">
function n_eck(ne,sz) {
function n_eck(ne,sz) {
Line 27: Line 25:
</html>
</html>
===Output===
===Output===
<html>
 
<div id="box" class="jxgbox" style="width:600px; height:600px;"></div>
<jsxgraph box="box" width="600" height="600">
<script language="JavaScript">
var brd = JXG.JSXGraph.initBoard('box', {boundingbox: [-300, 300, 300, -300]});
var brd = JXG.JSXGraph.initBoard('box', {originX: 300, originY: 300, unitX: 1, unitY: 1});
var t = brd.create('turtle',[],{fillColor:'yellow'});
var t = brd.createElement('turtle',[],{fillColor:'yellow'});
function run() {
function run() {
   brd.suspendUpdate();
   brd.suspendUpdate();
Line 43: Line 40:
}
}
run();
run();
</script>
</jsxgraph>
</html>


* [[Slow version]]
* [[Slow version]]

Latest revision as of 09:13, 6 August 2015


Output

References

This example is from