Skip to content

Commit

Permalink
includes/std: Added new palette control functions
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Dec 1, 2024
1 parent 4c96bfb commit d14f8de
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions includes/std/core.pat
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
}

0 comments on commit d14f8de

Please sign in to comment.