From 3c96c95106be846ba39ffa2a9073bdb2e3d2d026 Mon Sep 17 00:00:00 2001 From: takunomi-build-bot Date: Wed, 10 Jul 2024 19:25:23 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Repository=20layout=20updated=20?= =?UTF-8?q?to=20latest=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni --- LICENSE | 7 ++++ LICENSE.txt | 5 --- README.md | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+), 5 deletions(-) create mode 100644 LICENSE delete mode 100644 LICENSE.txt create mode 100644 README.md diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..02515fe --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +"THE BEER-WARE LICENSE" (Revision 42): + + wrote this program. As long as you retain this notice you +can do whatever you want with this stuff. If we meet some day, and you think +this stuff is worth it, you can buy me a beer in return. + + Jon Michael Aanes diff --git a/LICENSE.txt b/LICENSE.txt deleted file mode 100644 index ae1605d..0000000 --- a/LICENSE.txt +++ /dev/null @@ -1,5 +0,0 @@ - - wrote this library. As long as you retain this notice you -can do whatever you want with this stuff. If we meet some day, and you think -this stuff is worth it, you can buy me a beer in return. -- Jon Michael Aanes diff --git a/README.md b/README.md new file mode 100644 index 0000000..95ece54 --- /dev/null +++ b/README.md @@ -0,0 +1,97 @@ + + + + +# Colors + +This is a collection of functions for performing color operations, designed to work with the LÖVE game engine. + +## Documentation + +Supports following color formats: + +rgb255: The standard computer representation, with each + + +channel (red, green, blue, alpha) in the [0-255] range. Alpha +channel (index 4), can either be explicit or implicit (and taken +to be 255.) + + +rgb1: As above, except channels are in the [0-1] range. +hsl: Hue-saturation-lightness representation (does not support alpha). + + +Hue channel is in the [0-1] range, instead of the standard [0-2*pi] range. + +## Functions + +interpolate_rgb (c1, c2, t) +Interpolation + + +invert_rgb (color) +Inversion + + +parse_rgb (str) +Parsing + +## Functions + +interpolate_rgb (c1, c2, t) + + + Interpolation + + + Parameters: + +c1 + +c2 + +t + + + + + +invert_rgb (color) + + + Inversion + + + Parameters: + +color + + + + + +parse_rgb (str) + + + Parsing + + + Parameters: + +str + Error handling + + + +# License + +``` +"THE BEER-WARE LICENSE" (Revision 42): + + wrote this program. As long as you retain this notice you +can do whatever you want with this stuff. If we meet some day, and you think +this stuff is worth it, you can buy me a beer in return. + + Jon Michael Aanes +```