.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_ColorArray: ColorArray ========== **Category:** Built-In Types Brief Description ----------------- Array of Colors Member Functions ---------------- +--------------------------------------+-----------------------------------------------------------------------------------------------------------+ | void | :ref:`push_back` **(** :ref:`Color` color **)** | +--------------------------------------+-----------------------------------------------------------------------------------------------------------+ | void | :ref:`resize` **(** :ref:`int` idx **)** | +--------------------------------------+-----------------------------------------------------------------------------------------------------------+ | void | :ref:`set` **(** :ref:`int` idx, :ref:`Color` color **)** | +--------------------------------------+-----------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`size` **(** **)** | +--------------------------------------+-----------------------------------------------------------------------------------------------------------+ | :ref:`ColorArray` | :ref:`ColorArray` **(** :ref:`Array` from **)** | +--------------------------------------+-----------------------------------------------------------------------------------------------------------+ Description ----------- Array of Color, can only contains colors. Optimized for memory usage, can't fragment the memory. Member Function Description --------------------------- .. _class_ColorArray_push_back: - void **push_back** **(** :ref:`Color` color **)** Append a value to the array. .. _class_ColorArray_resize: - void **resize** **(** :ref:`int` idx **)** Resize the array. .. _class_ColorArray_set: - void **set** **(** :ref:`int` idx, :ref:`Color` color **)** Set an index in the array. .. _class_ColorArray_size: - :ref:`int` **size** **(** **)** Return the array size. .. _class_ColorArray_ColorArray: - :ref:`ColorArray` **ColorArray** **(** :ref:`Array` from **)** Create from a generic array.