From d14f8de45990e4524e2ba21065b20d65ca641821 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 1 Dec 2024 17:15:24 +0100 Subject: [PATCH] includes/std: Added new palette control functions --- includes/std/core.pat | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/includes/std/core.pat b/includes/std/core.pat index 595442f..5333508 100644 --- a/includes/std/core.pat +++ b/includes/std/core.pat @@ -173,4 +173,20 @@ namespace auto std::core { fn execute_function(str function_name, auto ... args) { builtin::std::core::execute_function(function_name, args); }; + + /** + Sets the pattern color palette for all future created patterns + @param args RGBA8 colors as 32 bit integers (0xAABBGGRR) + */ + fn set_pattern_palette_colors(auto ... colors) { + builtin::std::core::set_pattern_palette_colors(colors); + }; + + /** + Resets the current pattern palette progress back to zero. + This can be useful to force all instances of a type to have the same coloring for its members + */ + fn reset_pattern_palette() { + builtin::std::core::reset_pattern_palette(); + }; }