Surface.palette - multiple declarations

Function Surface.palette

Gets the used color palette of the dsdl2.Surface

inout inout(Palette) palette() @property @trusted;

Returns

dsdl2.Palette instance of the dsdl2.Surface

Function Surface.palette

Sets the color palette of the dsdl2.Surface

void palette (
  Palette newPalette
) @property @trusted;

Parameters

NameDescription
newPalette new dsdl2.Palette instance to use for the dsdl2.Surface