Add color wheel widgets to bevy_feathers#24917
Conversation
|
Added the triangle-inside-ring type. Feel free to approve only one or the other. |
|
I don't think we need to get overly ambitious here, or support a large number of choices. The main requirement is support the needs of the scene editor, which will use color picking infrequently. While feathers is intended to support third-party editors generally, there's no point in getting too specialized: if someone really wants to re-implement Krita or Gimp inside of Bevy, they are probably going to be creating a lot of custom widgets anyway. So I'd say pick one and go with it. |
|
I'm working on artist-focused dev tools, so I'll at least be using these. 😂 I expect the HWB triangle widget will be most useful for the average Bevy dev, so perhaps I could simplify down to that and repurpose the rest into an ecosystem crate. |
Fair enough. For the editor, I am working on a popup color picker button - basically a dropdown menu button with a color swatch. This will incorporate all of the various color editing controls we've done so far, and I could see it including your wheel control as a mode. I don't know if the scene editor - or most third-party editors - will need much more than that. |




Objective
A color wheel is a widget often preferred when picking colors in cylindrical color spaces. This adds two types of color wheel widget to bevy_feathers.
Solution
color_wheel.rs+color_triangle.rstobevy_feathers/src/controlsandcolor_wheel.wgsl+color_triangle.wgsltobevy_feathers/src/assets/shaders.Testing
feathers_galleryexample, see below.Showcase
BSN for color wheel widget:
BSN for color triangle widget: