Palette.this

Constructs a dsdl2.Palette from an array of dsdl2.Colors

Parameters

colors Color[]

an array/slice of dsdl2.Colors to put in the dsdl2.Palette

Throws

dsdl2.SDLException if allocation failed

Meta