def comp.count

gralha-svg-render@0.1.0.1 · svg.bend:5699

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

5699def comp.count(+lo: F32, +hi: F32, +limit: U32) -> U32:
5700  +a = comp.start(lo, limit)
5701  +b = F32.to_u32(U.clamp(F32.ceil(hi), 0.0, U32.to_f32(limit)))
5702  U.choose(U32, U32.is_gt(b, a), (b - a : U32), 0)

Uses (10)

Used by (0)

No other definition uses this definition.