Skip to content

Commit 21de265

Browse files
author
Alice Cecile
committed
Use new convenience method in aabb.rs
1 parent fa8ad85 commit 21de265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_gizmos/src/aabb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ fn color_from_entity(entity: Entity) -> Color {
109109
const RATIO_360: f32 = 360.0 / u32::MAX as f32;
110110
let hue = index.wrapping_mul(FRAC_U32MAX_GOLDEN_RATIO) as f32 * RATIO_360;
111111

112-
Hsla::hsl(hue, 1., 0.5).into()
112+
Color::hsl(hue, 1., 0.5)
113113
}
114114

115115
fn aabb_transform(aabb: Aabb, transform: GlobalTransform) -> GlobalTransform {

0 commit comments

Comments
 (0)