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 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_color32 π
- Show a color with background checkers to demonstrate transparency (if any).
- srgba_edit_ui πShows 4
DragValue
widgets to be used to edit the RGBA u8 values. AlphaβsDragValue
is hidden whenAlpha::Opaque
. - use_color_cache π