Mathematische Funktionen mit Canvas

Darstellung von Polygonen

Darstellung von Geraden ( lineare Funktionen ), Parabeln und Polygone, wie z.B.

 ( t ; t )          oder  y = x
 ( t ; t*t/2 - t )  oder  y = x*x/2 - t
 ( t ; t*t*t/4 )    oder  y = x*x*x/4

Darstellung von trigonometrischen Funktionen

Trigonometrischen Funktionen, wie z.B.

 xFunc = function (t) { return t; }
 yFunc = function (t) { return Math.sin(t); }

Es wird z.B. verwendet:

  stroke_style: "#000",
  fill_style:   "#aaa", 
  use_scale: true,   xScale: 0.75, yScale: 1.5,
  use_shift: true,   xShift: 0, yShift: -0.5,
  use_rotate: true,  xFix: 0, yFix: -1, rotation_deg: -22.5
Comics, Ästetik, Graphische Kunst,

Das folgende Canvas-Bild besteht aus Linien (x1,y1, x2,y2).