Example:
auto result = colorChooser("Pick a color", Color(1.0, 0.0, 0.0));
if (result !is null) {
writeln("Selected: ", result.r, ", ", result.g, ", ", result.b);
}Color * colorChooser(string title, Color initialColor = Color.init, ColorMode mode = ColorMode.rgb)Shows a color chooser dialog.
title | Title for the dialog |
initialColor | Initial color to display |
mode | Color selection mode |
Example:
auto result = colorChooser("Pick a color", Color(1.0, 0.0, 0.0));
if (result !is null) {
writeln("Selected: ", result.r, ", ", result.g, ", ", result.b);
}