Name
SavePalette -- save palette to a file (V9.0)
Synopsis
SavePalette(id, f$[, t])
Function
This function saves the palette specified by id to the file specified by f$. The palette will be saved in the IFF ILBM palette format, as established by Deluxe Paint.

Starting with Hollywood 10.0, SavePalette() accepts an optional table argument that allows you to pass additional arguments to the function. The following tags are currently supported by the optional table argument:

Adapter:
This tag allows you to specify one or more file adapters that should be asked if they want to save the specified file. If you use this tag, you must set it to a string containing the name(s) of one or more adapter(s). Defaults to the adapter set using SetDefaultAdapter(). See Loaders and adapters for details. (V10.0)

UserTags:
This tag can be used to specify additional data that should be passed to loaders and adapters. If you use this tag, you must set it to a table of key-value pairs that contain the additional data that should be passed to plugins. See User tags for details. (V10.0)

To load a palette back into Hollywood, use the LoadPalette() function or the @PALETTE preprocessor command.

Inputs
id
identifier of the palette to save
f$
destination file
t
optional: table containing further options (see above) (V10.0)

Show TOC