From 9ab133b88db36bd8a4e6bc7290e8d0c50fbff1db Mon Sep 17 00:00:00 2001 From: taxicomics <168220579+taxicomics@users.noreply.github.com> Date: Mon, 27 May 2024 15:47:41 +0200 Subject: [PATCH] Create two_tone_print.lua --- lua_scripts/two_tone_print.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua_scripts/two_tone_print.lua diff --git a/lua_scripts/two_tone_print.lua b/lua_scripts/two_tone_print.lua new file mode 100644 index 0000000..3f6f572 --- /dev/null +++ b/lua_scripts/two_tone_print.lua @@ -0,0 +1,10 @@ +--opt_height is an optional parameter to change the position of the dividing horizontal line +--Keep in mind that this funcion uses CLIP to achieve it's effect. It WILL NOT respect or reset any other CLIPS you might be doing. + +function print_two_tone(text,x,y,color_1,color_2,opt_height) +local height=opt_height or 3 + print(text,x,y,color_1) + clip(0,0,127,y+height) + print(text,x,y,color_2) + clip() +end