JavaScript 数値演算 新しいページはコチラ
提供: yonewiki
(→対数・指数函数 log/exp) |
|||
738行: | 738行: | ||
/* 円を描く */ | /* 円を描く */ | ||
function draw3() { | function draw3() { | ||
+ | document.write('test'); | ||
var canvas = document.getElementById('c3'); | var canvas = document.getElementById('c3'); | ||
if ((! canvas) || (! canvas.getContext) ) { return false; } | if ((! canvas) || (! canvas.getContext) ) { return false; } | ||
+ | |||
var ctx = canvas.getContext('2d'); | var ctx = canvas.getContext('2d'); | ||
+ | |||
+ | |||
ctx.beginPath(); | ctx.beginPath(); | ||
ctx.moveTo(200, 0); | ctx.moveTo(200, 0); | ||
785行: | 789行: | ||
<ycanvas id="c3" width="1098" height="400"></ycanvas> | <ycanvas id="c3" width="1098" height="400"></ycanvas> | ||
+ | |||
=== 乱数 random === | === 乱数 random === | ||