Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

Dischtanz()

Examples
// Sets the background gray value based on
// the distance of the mouse from the center
Programmteil wo_immerwider_gmacht_wird() bitte
  Komazahl  d = Dischtanz(50, 50, MuusX, MuusY);
  Fuellfarb(d*4);
  Viereck(0, 0, 99, 99);
danke
Description Calculates the distance between two points.
Syntax
Dischtanz(x1, y1, x2, y2);
Dischtanz(x1, y1, z1, x2, y2, z2);
Parameters
x1 Ganzizahl or Komazahl : x-coordinate of the first point
y1 Ganzizahl or Komazahl : y-coordinate of the first point
z1 Ganzizahl or Komazahl : z-coordinate of the first point
x2 Ganzizahl or Komazahl : x-coordinate of the second point
y2 Ganzizahl or Komazahl : y-coordinate of the second point
z2 Ganzizahl or Komazahl : z-coordinate of the second point
Usage Web & Application
Stefan Baltensperger 2009

Creative Commons License