MCPcopy Create free account
hub / github.com/csskit/csskit / oklab_round

Function oklab_round

crates/chromashift/src/round.rs:101–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100 #[test]
101 fn oklab_round() {
102 let rounded = Oklab::new(0.44027179, 0.08817676, -0.13386435, 100.0).round();
103 assert_eq!(rounded, Oklab::new(0.44, 0.088, -0.134, 100.0));
104 }
105
106 #[test]
107 fn lab_round() {

Callers

nothing calls this directly

Calls 1

roundMethod · 0.80

Tested by

no test coverage detected