Color docs should specify acceptable value ranges #17508
Labels
A-Color
Color spaces and color math
C-Docs
An addition or correction to our documentation
D-Trivial
Nice and easy! A great choice to get started with Bevy
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
https://docs.rs/bevy/latest/bevy/prelude/enum.Color.html
Most of the methods to construct a
Color
accept values in the range[0..1]
. A common beginner mistake is assuming the range[0..255]
. Hue is typically in the range[0..360]
. LABA/LCHA have a Lightness in the range[0..1.5]
. I might have missed some exceptions.These ranges are documented for the color-space structs being constructed by each method, but IMO should be documented in the method, too.
The text was updated successfully, but these errors were encountered: