Module egui::widgets::color_picker
source Β· 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§
- background_
checkers π - color_
button π - color_
cache_ πget - color_
cache_ πset - 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. - color_
slider_ π1d - color_
slider_ π2d Arguments - contrast_
color π - input_
type_ πbutton_ ui - is_
additive_ πalpha We use a negative alpha for additive colors within this file (a bit ironic). - rgba_
edit_ πui Shows 4DragValue
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_
color32 π - Show a color with background checkers to demonstrate transparency (if any).
- srgba_
edit_ πui Shows 4DragValue
widgets to be used to edit the RGBA u8 values. AlphaβsDragValue
is hidden whenAlpha::Opaque
. - use_
color_ πcache