|
RapidGameFramework
Reusable Godot managers for data-driven small games
|
Reusable palette loader and sprite recoloring helper. More...
Go to the source code of this file.
Namespaces | |
| namespace | palette_manager |
Variables | |
| palette_manager.DataCacheManager | |
| palette_manager.data_cache_manager | |
| palette_manager.data | |
| Load palette definitions from a JSON file. | |
| palette_manager.source_palette | |
| Return one parsed palette as an array of Color values. | |
| palette_manager.target_palette | |
| palette_manager.limit | |
| palette_manager.image | |
| palette_manager.pixel | |
| palette_manager.index | |
| palette_manager.Color | |
| palette_manager.a | |
| palette_manager.int | |
| Resolve a sprite id through spriteManager and return a recolored texture. | |
| palette_manager.cache_key | |
| palette_manager.texture | |
| palette_manager.recolored | |
| palette_manager.dr | |
| palette_manager.dg | |
| palette_manager.db | |
| palette_manager.distance | |
| palette_manager.best_distance = distance | |
| palette_manager.best_index = i | |
Reusable palette loader and sprite recoloring helper.
Palettes are JSON arrays of hex colors. Recoloring maps each visible pixel to the nearest color in a source palette, then replaces it with the color at the same index in a target palette. This supports quick visual swaps such as vibrant, pastel, and darker game-specific styles.
Definition in file palette_manager.gd.