flix

0.81.0

DrawCmd

enum DrawCmd with Eq, ToStringSource
case Clear(Color)
case Fill(Color)
case FillAlpha(Color, Int32)
case Rect(Float32, Float32, Float32, Float32)
case Ellipse(Float32, Float32, Float32, Float32)
case Text(String, Float32, Float32)
case TextSize(Float32)

A single drawing instruction.

Canvas.runWithCollector interprets the Canvas effect into a list of these, so rendering can be tested as data.

Instances

Eq, ToString