SourceModule color_picker
Color picker widgets.
Classes§
| Alpha Enum | What options to show for alpha |
Functions§
| color_edit_button_hsva | |
| color_edit_button_rgb | Shows a button with the given color. If the user clicks the button, a full color picker is shown. |
| color_edit_button_rgba | Shows a button with the given color. If the user clicks the button, a full color picker is shown. |
| color_edit_button_srgb | Shows a button with the given color.
If the user clicks the button, a full color picker is shown.
The given color is in |
| color_edit_button_srgba | Shows a button with the given color. If the user clicks the button, a full color picker is shown. |
| color_picker_color32 | Shows a color picker where the user can change the given |
| color_picker_hsva_2d | Shows a color picker where the user can change the given |
| show_color | Show a color with background checkers to demonstrate transparency (if any). |
| show_color_at | Show a color with background checkers to demonstrate transparency (if any). |
SourceFunction color_edit_button_hsva§
from egui import color_edit_button_hsvadef color_edit_button_hsva(ui: Ui, hsva: Hsva, alpha: Alpha) -> ResponseSourceFunction color_edit_button_rgb§
from egui import color_edit_button_rgbdef color_edit_button_rgb(ui: Ui, rgb: Mutable) -> ResponseShows a button with the given color. If the user clicks the button, a full color picker is shown.
SourceFunction color_edit_button_rgba§
from egui import color_edit_button_rgbadef color_edit_button_rgba(ui: Ui, rgba: Rgba, alpha: Alpha) -> ResponseShows a button with the given color. If the user clicks the button, a full color picker is shown.
SourceFunction color_edit_button_srgb§
from egui import color_edit_button_srgbdef color_edit_button_srgb(ui: Ui, srgb: Mutable) -> ResponseShows 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.
SourceFunction color_edit_button_srgba§
from egui import color_edit_button_srgbadef color_edit_button_srgba(ui: Ui, srgba: Color32, alpha: Alpha) -> ResponseShows a button with the given color. If the user clicks the button, a full color picker is shown.
SourceFunction color_picker_color32§
from egui import color_picker_color32def color_picker_color32(ui: Ui, srgba: Color32, alpha: Alpha) -> boolShows a color picker where the user can change the given Color32 color.
Returns True on change.
SourceFunction color_picker_hsva_2d§
from egui import color_picker_hsva_2ddef color_picker_hsva_2d(ui: Ui, hsva: Hsva, alpha: Alpha) -> boolShows a color picker where the user can change the given Hsva color.
Returns True on change.
SourceFunction show_color§
from egui import show_colordef show_color(ui: Ui, color: Color32, desired_size: Vec2) -> ResponseShow a color with background checkers to demonstrate transparency (if any).
SourceFunction show_color_at§
from egui import show_color_atdef show_color_at(painter: Painter, color: Color32, rect: Rect) -> NoneShow a color with background checkers to demonstrate transparency (if any).