Skip to content

Color Palette ​

A color palette stores the 256 colors that can be assigned to a voxel or pixel. To edit the colors of a color palette use FxColorPalette.

Properties ​

None.

Create ​

To create a new color palette use FxFile.Create with FileType 333.

lua
colorPaletteID = FxFile.Create(333);
colorPaletteID = FxFile.Rename(333, colorPaletteID, "MyColorPalette"); -- rename new color palette
FxFile.Open(333, colorPaletteID); -- open new color palette

Files ​

The default color palette, which is copied to every new project, is located at documents\Foxel\default.fxlcol. Each project has its own color palette stored as Projects\PROJECTNAME\project.fxlcol. Other custom color palettes are stored as shared files in Shared\ColorPaletts with the extension .fxlcol.