def act.keep
import gralha-coverage@0.1.0.1/cover.bend as Coverimport Base
282# The line as it will stand on scanline sy, placed into the descending list.
283def act.keep(keep: Bool, +x0: F32, +y0: F32, +slope: F32, +bottom: F32, +dir: F32, +sy: F32, acc: List<&2, Act>) -> List<&2, Act>:
284 match keep:
285 case False{}: acc
286 case True{}: act.insert(Act{(x0 + (sy - y0) * slope : F32), x0, y0, slope, bottom, dir}, acc)