Reads a color presets gpl
(GIMP Palette) file in the addon local directory, called presets.gpl
. It adds the colors to the editor ColorPicker for quick access.
This repository includes a presets.gpl
file as an example. It's the official GDQuest color palette.
Compatible: Godot
>= v4.0
The addon:
- Doesn't check the length of the color palette/file.
- Overwrites the ColorPicker presets whenever you reopen the project or re-enable the addon.
- Copy the contents of this folder into
res://addons/gdquest_colorpicker_presets/
. - Replace
res://addons/colorpicker_presets/presets.gpl
with your preferred version. - Enable the addon from
Project > Project Settings... > Plugins
. - Profit.
- Install gd-plug using the Godot Asset Library.
- Save the following code into the file
res://plug.gd
(create the file if necessary):
#!/usr/bin/env -S godot --headless --script
extends "res://addons/gd-plug/plug.gd"
func _plugging() -> void:
plug(
"[email protected]:GDQuest/godot-addons.git",
{include = ["addons/gdquest_colorpicker_presets"]}
)
- On Linux, make the
res://plug.gd
script executable withchmod +x plug.gd
. - Using the command line, run
./plug.gd install
orgodot --headless --script plug.gd install
.
They'll be available in the editor ColorPicker.