def picture.depth

gralha-image@0.1.0.1 · image.bend:47

import gralha-image@0.1.0.1/image.bend as Image
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

47def picture.depth(+size: U32, +side: U32, +depth: Nat) -> Nat:
48  U.branch(Nat, U32.is_ge(side, size), _ => depth, _ => picture.depth(size, (side * 2 : U32), 1n+depth))
49
50@unsafe

Uses (5)

Used by (2)