Just remembered the old casting hack:

RGB[] PALETTE = (cast(RGB*) cast(ubyte[]) [...])[0..256];

It works but is there perhaps another nicer possibility?

Reply via email to