Named Palettes ------------------ You can use a named Palette anywhere you need a palette. There are twenty named Built-In Palettes that come with BiblioPixel (listed `here `_). You can also define Project Palettes in the `palettes` section of a Project, which is a named dictionary of palettes. The Default Palette ===================== There's a special palette in the Project Palettes named "default" which is used for animations in that Project that don't specify a palette. You can specify **Example 1**: Project Palettes and Built-in Palettes .. code-block:: yaml shape: [48, 32] palettes: lovely: ['lavender blush 1', 'lemon chiffon 1', 'light coral'] hideous: [yellow, beige, maroon] default: lovely g: van_gogh # Refers to a Built-in Palette animation: typename: sequence length: 2 animations: - typename: $bpa.matrix.MathFunc # Use the default Palette - typename: $bpa.matrix.MathFunc palette: hideous # Use a project Palette - typename: $bpa.matrix.MathFunc palette: flag # Use a built-in Palette - typename: $bpa.matrix.MathFunc palette: g # Use a built-in Palette .. image:: https://raw.githubusercontent.com/ManiacalLabs/DocsFiles/master/BiblioPixel/doc/tutorial/fields/named-palettes-palettes.gif :target: https://raw.githubusercontent.com/ManiacalLabs/DocsFiles/master/BiblioPixel/doc/tutorial/fields/named-palettes-palettes.gif :alt: doc/tutorial/fields/named-palettes-palettes :align: center ---------- .. code-block:: yaml shape: [64, 48] animation: typename: $bpa.matrix.MathFunc func: 10 palette: colors: flag scale: 0.01 .. image:: https://raw.githubusercontent.com/ManiacalLabs/DocsFiles/master/BiblioPixel/doc/tutorial/fields/named-palettes-footer.gif :target: https://raw.githubusercontent.com/ManiacalLabs/DocsFiles/master/BiblioPixel/doc/tutorial/fields/named-palettes-footer.gif :alt: doc/tutorial/fields/named-palettes-footer :align: center