Color matrix defines for filters and identity (#80320)

This PR converts the procs `color_matrix_identity`,
`color_matrix_lightness` and `color_matrix_contrast` into
defines/macros. Also adds in defines for common color matrix filters.

I don't like how `color_matrix_identity` is a one-line proc with no arg.
Also these help people identify the sort of color matrix filter is being
used.
This commit is contained in:
Ghom
2023-12-24 20:14:01 +00:00
committed by GitHub
parent ec62465b29
commit f3983e3901
9 changed files with 40 additions and 31 deletions
+2 -2
View File
@@ -16,7 +16,7 @@
/obj/item/mod/paint/Initialize(mapload)
. = ..()
current_color = color_matrix_identity()
current_color = COLOR_MATRIX_IDENTITY
/obj/item/mod/paint/examine(mob/user)
. = ..()
@@ -66,7 +66,7 @@
. = ..()
editing_mod = null
QDEL_NULL(proxy_view)
current_color = color_matrix_identity()
current_color = COLOR_MATRIX_IDENTITY
/obj/item/mod/paint/ui_status(mob/user)
if(check_menu(editing_mod, user))