flix

0.81.0

Still

A still picture: no state, no time, no input.

The smallest thing this runtime can draw, and the place to start reading. scene is an ordinary function that happens to use the Canvas effect -- it does not know whether it is drawing to a window or being recorded by a test.

Run it: bin/sketch static

Try this: change sun to a different colour, or move it by editing the two numbers in Canvas.ellipse. Re-run and see the difference.

Definitions

def main(): Unit \ IO§ Source

Entry point for running the still picture sketch.

def scene(): Unit \ Canvas§ Source

The whole picture. Pure apart from the Canvas effect.