Bevy Color is an extension for VS Code to preview colors declared in rust files using the Bevy game engine. It also allows adjusting them with the integrated color picker.
Currently tested with version 0.16.0 of Bevy.
Shows a preview of the color next to its declaration.
This currently works for colors declared with Color:: as well as colors from the color palettes (tailwind and css).
Clicking on the color preview or hovering over the detected color definition opens a color picker. Selecting a color replaces the original color with the new color. If possible the same color space is used for the new color.
Values outside of the expected range for a color space are marked with a diagnostic.
This extension does currently not have any requirements.
This extension does currently not provide any settings.
The color detection is based on multiple regular expressions and does currently not cover all possible ways to declare a color provided by Bevy.
While it is limited to rust files it does not actually know if Bevy is used.
As such it also adds a color preview to other code which resembles a color declaration in Bevy.
See CHANGELOG.md for a list of changes.


