Skip to content
0.2.0-dev Download ZIP
16 lines ·978 B Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="ColorPalette" inherits="Resource" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A resource class for managing a palette of colors, which can be loaded and saved using [ColorPicker].
5 </brief_description>
6 <description>
7 The [ColorPalette] resource is designed to store and manage a collection of colors. This resource is useful in scenarios where a predefined set of colors is required, such as for creating themes, designing user interfaces, or managing game assets. The built-in [ColorPicker] control can also make use of [ColorPalette] without additional code.
8 </description>
9 <tutorials>
10 </tutorials>
11 <members>
12 <member name="colors" type="PackedColorArray" setter="set_colors" getter="get_colors" default="PackedColorArray()">
13 A [PackedColorArray] containing the colors in the palette.
14 </member>
15 </members>
16</class>