mirror of
https://github.com/bevyengine/bevy
synced 2024-12-24 12:03:14 +00:00
1e73312e49
# Objective `color_from_entity` uses the poor man's hash to get a fixed random color for an entity. While the poor man's hash is succinct, it has a tendency to clump. As a result, bevy_gizmos has a tendency to re-use very similar colors for different entities. This is bad, we would want non-similar colors that take the whole range of possible hues. This way, each bevy_gizmos aabb gizmo is easy to identify. ## Solution AHash is a nice and fast hash that just so happen to be available to use, so we use it. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |