JavaScript 数値演算 新しいページはコチラ
提供: yonewiki
(→対数・指数函数 log/exp) |
(→対数・指数函数 log/exp) |
||
| 766行: | 766行: | ||
ctx.stroke(); | ctx.stroke(); | ||
} | } | ||
| + | |||
| + | ctx.strokeStyle = 'rgb(255, 0, 0)'; | ||
for(var i = -10;i < 10;i += 0.01){ | for(var i = -10;i < 10;i += 0.01){ | ||
ctx.beginPath(); | ctx.beginPath(); | ||
| 778行: | 780行: | ||
ctx.stroke(); | ctx.stroke(); | ||
} | } | ||
| + | ctx.strokeStyle = 'rgb(0, 0, 0)'; | ||
| + | |||
/* | /* | ||
ctx.beginPath(); | ctx.beginPath(); | ||