Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/csskit/csskit
/ lch_round
Function
lch_round
crates/chromashift/src/round.rs:114–117 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
112
113
#[test]
114
fn lch_round() {
115
let rounded = Lch::new(61.23323694, 50.27335275, 273.48455139, 100.0).round();
116
assert_eq!(rounded, Lch::new(61.2, 50.3, 273.5, 100.0));
117
}
118
119
#[test]
120
fn hsl_round() {
Callers
nothing calls this directly
Calls
1
round
Method · 0.80
Tested by
no test coverage detected