tinyfd_colorChooser

extern (C) nothrow @nogc
tinyfd_colorChooser
(,,
ref const ubyte[3] defaultRGB
,
ref ubyte[3] resultRGB
)

Parameters

title c_str

C-string or null

defaultHexRGB c_str

default color, C-string or null

defaultRGB ubyte[3]

used only if the previous parameter is null

resultRGB ubyte[3]

contains the decoded result

Return Value

Type: c_str

The hexcolor as a string like "#FF0000" or null on cancel.

Examples

ubyte[3] rgb;
c_str hexColor = tinyfd_colorChooser("Choose a nice color", "#FF0077", rgb, rgb);
if (hexColor)
    tinyfd_messageBox("The selected hexcolor is", hexColor, "ok", "info", 1);

Meta