Add colorspace as an arg to the gradient proc (#391)

We need to allow colorspace setting to make HSV gradients possible,
which is real powerful. It is technically a bit fucked because byond is 
ok with passing a value for index after the assoc space value, but we 
can just pretend that isn't a problem.
This commit is contained in:
LemonInTheDark 2024-06-16 18:29:17 -07:00 committed by GitHub
parent ef9485246d
commit ca9e5a2c8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -467,7 +467,7 @@ pub fn register_builtins(tree: &mut ObjectTreeBuilder) {
proc/get_step_rand(Ref);
proc/get_step_to(Ref,Trg,Min=0);
proc/get_step_towards(Ref,Trg);
proc/gradient(Gradient, index); // unsure how to handle (Item1, Item2, ..., index) form
proc/gradient(Gradient, index, space = COLORSPACE_RGB); // unsure how to handle (Item1, Item2, ..., index) form
proc/hascall(Object,ProcName);
proc/hearers(Depth=world.view,Center=usr);
proc/html_decode(HtmlText);