def paint.order.third
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
import gralha-text-scan@0.1.0.1/scan.bend as U
5620def paint.order.third(+order: U32) -> U32:
5621 +first = U32.div(order, 2)
5622 +lo = U.choose(U32, U32.is_eq(first, 0), 1, 0)
5623 +hi = U.choose(U32, U32.is_eq(first, 2), 1, 2)
5624 U.choose(U32, U32.is_eq(U32.mod(order, 2), 0), hi, lo)
Uses (5)
Used by (0)
No other definition uses this definition.