Pyramid Divergence

This divergence creates a pyramid-shaped pattern. It's used to draw circles, boxes, stars, lines and other symmetric shapes.

Pyramid [overflow]
angle radians or degrees
focus x y
offset horizontal vertical
tallness value
position x y
bias horizontal vertical
distortion horizontal vertical

Remarks
Definition of a pyramid function starts with parameters of so-called affine transform. It rotates the pattern around arbitrary "focus" point and shifts it by extent of horizontal and vertical offset. There's common practice to use random numbers in place of affine parameters. It varies a painting but doesn't change its style.
Tallness is height of the pyramid peak. If it exceeds 1.0 an overflow happens (when it's enabled). Overflowing visually looks like a number of sharp curves. It's managed by overflow tag. If it's not present the function never exceeds the upper limit and the pattern looks smooth.
Position specifies coordinates of the shape's center. Bias affects to the steepness of pyramid slopes. It's split on horizontal and vertical components. A bigger value means a steeper slope. The steeper pyramid is, the smaller it is at the same tallness. Distortion pair defines the shape as it's shown on the pictures below (of course these cases don't span all variety of shapes).
distortion 1 1
distortion 2 2
distortion 3 3
distortion 0.5 0.5
distortion 0.1 0.1
distortion 0.5 2
Example
# Pyramid shaped as a star
Pyramid 
  angle  0
  focus  0 0 
  offset 0 0
  tallness 1.5
  position 10 10
  bias 0.00001 0.00001
  distortion 0.13 0.13
...next section is art of scening