Expand description
Color picker widgets.
Enums§
- What options to show for alpha
Constants§
- N 🔒Number of vertices per dimension in the color sliders. We need at least 6 for hues, and more for smooth 2D areas. Should always be a multiple of 6 to hit the peak hues in HSV/HSL (every 60°).
Functions§
- Shows a button with the given color. If the user clicks the button, a full color picker is shown.
- Shows a button with the given color. If the user clicks the button, a full color picker is shown.
- Shows a button with the given color. If the user clicks the button, a full color picker is shown. The given color is in
sRGB
space. - Shows a button with the given color. If the user clicks the button, a full color picker is shown.
- Shows a color picker where the user can change the given
Color32
color. - Shows a color picker where the user can change the given
Hsva
color. - Arguments
- We use a negative alpha for additive colors within this file (a bit ironic).
- Shows 4
DragValue
widgets to be used to edit the RGBA f32 values. Alpha’sDragValue
is hidden whenAlpha::Opaque
. - Show a color with background checkers to demonstrate transparency (if any).
- Show a color with background checkers to demonstrate transparency (if any).
- Shows 4
DragValue
widgets to be used to edit the RGBA u8 values. Alpha’sDragValue
is hidden whenAlpha::Opaque
.