From 3be98e5ef5247042fd219dded572910305b1a5a4 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 9 Mar 2024 14:16:43 +0100 Subject: big restructure of `mode` scripts --- .local/share/mode/lib/functions.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .local/share/mode/lib/functions.sh (limited to '.local/share/mode/lib/functions.sh') diff --git a/.local/share/mode/lib/functions.sh b/.local/share/mode/lib/functions.sh new file mode 100644 index 0000000..c7212e4 --- /dev/null +++ b/.local/share/mode/lib/functions.sh @@ -0,0 +1,4 @@ +#!/bin/sh +hex_to_rgb_array() { pastel format rgb "$1" | cut -c4- | tr '()' '[]' ; } +mix_rgb() { pastel mix --colorspace=RGB --fraction="$3" "$1" "$2" | pastel format hex ; } + -- cgit v1.2.3