def picture.depth
import gralha-image@0.1.0.1/image.bend as Imageimport 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