S or /

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 sRGB space.

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 Color32 color.

color_picker_hsva_2d

Shows a color picker where the user can change the given Hsva color.

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_hsva
def color_edit_button_hsva(ui: Ui, hsva: Hsva, alpha: Alpha) -> Response

SourceFunction color_edit_button_rgb§

from egui import color_edit_button_rgb
def color_edit_button_rgb(ui: Ui, rgb: Mutable) -> Response

Shows 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_rgba
def color_edit_button_rgba(ui: Ui, rgba: Rgba, alpha: Alpha) -> Response

Shows 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_srgb
def color_edit_button_srgb(ui: Ui, srgb: Mutable) -> Response

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.

SourceFunction color_edit_button_srgba§

from egui import color_edit_button_srgba
def color_edit_button_srgba(ui: Ui, srgba: Color32, alpha: Alpha) -> Response

Shows 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_color32
def color_picker_color32(ui: Ui, srgba: Color32, alpha: Alpha) -> bool

Shows 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_2d
def color_picker_hsva_2d(ui: Ui, hsva: Hsva, alpha: Alpha) -> bool

Shows a color picker where the user can change the given Hsva color.

Returns True on change.

SourceFunction show_color§

from egui import show_color
def show_color(ui: Ui, color: Color32, desired_size: Vec2) -> Response

Show a color with background checkers to demonstrate transparency (if any).

SourceFunction show_color_at§

from egui import show_color_at
def show_color_at(painter: Painter, color: Color32, rect: Rect) -> None

Show a color with background checkers to demonstrate transparency (if any).

Constants§

Re-exports§