PROCESSING - basic instructions


  CONDITIONAL INSTRUCTIONS

   if (condition)
   { instructions; }
  else
   { instructions; }


  LOOP „FOR”

   for(wartość_początkowa; warunek; krok_pętli)
   { instrukcje; }


 LOOP „WHILE”

   while (condition)
   { instructions; }


 GRAPHICAL PROCEDURES 2D

  point(x,y)
  line (a, b, c, d)
  triangle(x1, y1, x2, y2, x3, y3)
  quad(x1, y1, x2, y2, x3, y3, x4, y4)
  rect(x, y, s, w)  (x,y) - left,uppercorner, s - width, w - height
  ellipse(x, y, r1, r2)  (x,y) - centre of the ellipse, r1, r2 - rays
  arc(x, y, r1, r2, alfa, beta)   alpha - initial angle, beta - final angle
  bezier(x0, y0, x1, y1, x2, y2, x3, y3)
  curve(x0, y0, x1, y1, x2, y2, x3, y3)