Skip to content

Commit

Permalink
Use new convenience method in aabb.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice Cecile committed Feb 28, 2024
1 parent fa8ad85 commit 21de265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_gizmos/src/aabb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ fn color_from_entity(entity: Entity) -> Color {
const RATIO_360: f32 = 360.0 / u32::MAX as f32;
let hue = index.wrapping_mul(FRAC_U32MAX_GOLDEN_RATIO) as f32 * RATIO_360;

Hsla::hsl(hue, 1., 0.5).into()
Color::hsl(hue, 1., 0.5)
}

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

0 comments on commit 21de265

Please sign in to comment.