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

Function hsl_round

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

Source from the content-addressed store, hash-verified

118
119 #[test]
120 fn hsl_round() {
121 let rounded = Hsl::new(218.54015, 79.19075, 66.07843, 100.0).round();
122 assert_eq!(rounded, Hsl::new(218.5, 79.2, 66.1, 100.0));
123 }
124
125 #[test]
126 fn display_p3_round() {

Callers

nothing calls this directly

Calls 1

roundMethod · 0.80

Tested by

no test coverage detected