Paint Scenario

Painting is a heart of Newart script. It's an iterative process and can be either finite or may go on eternally. Paint sequence is defined by the hierarchy of nested loops. The sequence starts with paint keyword followed by number of iterations. Each paint sequence must be closed with end keyword. The contents of a loop should conform the syntax below.

Paint number of iterations
Pause duration of delay
Color color code or name
SGA length and code of pattern
Attractor parameters...
Set assigns a value to variable
Paint length of the nested loop
...
End
End

Remarks
Nested paints have the same syntax as a top-level loop. Number of closing end tags must correspond to number of opened paints. Paint blocks cannot overlap. Multiple top-level paint blocks are aggregated into one sequence, order of the blocks is kept. Though empty loops ain't deprecated they actually make no sense. As well as loops that have zero number of iterations.
Example
Paint eternally
  Set background to blue
  Set wait to 200
  Paint once
    Color background
    Pause wait
  End
  SGA 256 flares
  Attractor 256
    energy    0.0150 0.0151 0.0152
    frequency 1 1 1
    phase     0 0 0
    quality   2 2 2
    divergence Harmonic
      angle  random[0:2pi]
      focus  0 0 
      offset 0 0 
      period 200 200
      sub-period 10000 10000
      distortion 20 20
      saturation 1
End
...read about solid coloring