1
0

🤖 Repository layout updated to latest version

This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
This commit is contained in:
Takunomi Automaticus, The 2nd 2024-07-10 19:25:23 +02:00 committed by Jon Michael Aanes
parent f68031e365
commit 3c96c95106
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
3 changed files with 104 additions and 5 deletions

7
LICENSE Normal file
View File

@ -0,0 +1,7 @@
"THE BEER-WARE LICENSE" (Revision 42):
<jonjmaa@gmail.com> 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

View File

@ -1,5 +0,0 @@
<jonjmaa@gmail.com> 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

97
README.md Normal file
View File

@ -0,0 +1,97 @@
<!--- WARNING --->
<!--- THIS IS AN AUTO-GENERATED FILE --->
<!--- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN --->
# 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):
<jonjmaa@gmail.com> 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
```