Close #281 Add common math utilities and color helper