An OpenCv-based frontend library
Project description
RSProduction
A very usefull library for python development.
Table of Contents
1 Submodules
rsproduction
┣ styling
┃ ┗ color
┗ userinterface
styling
color
Constants
BLACK
__WHITE
__LIGHT_GRAY
__DARK_GRAY
__CORNFLOWER_BLUE
__DARKRED
__FOCUSED
__FOREGROUND
__FOREGROUND_DISABLED
__Methods
def bgr2rgb(color) # convert a BGR color to RGB color
def rgb2bgr(color) # convert a RGB color to BGR color
bgr2rgb
Convert a BGR color to RGB color
import rsproduction.styling.color as color
color_bgr = (56, 73, 54)
color_rgb = color.bgr2rgb(color_bgr)
print(f'color_bgr: {color_bgr}') # >> color_bgr: (56, 73, 54)
print(f'color_rgb: {color_rgb}') # >> color_rgb: (54, 73, 56)
rgb2bgr
Convert a RGB color to BGR color
import rsproduction.styling.color as color
color_rgb = (56, 73, 54)
color_bgr = color.bgr2rgb(color_bgr)
print(f'color_bgr: {color_bgr}') # >> color_bgr: (54, 73, 56)
print(f'color_rgb: {color_rgb}') # >> color_rgb: (56, 73, 54)
as_float
Convert byte color values to relative values [0..1]
import rsproduction.styling.color as color
color_byte = (125, 125, 125)
color_rel = color.as_float(color_byte)
print(f'color_byte: {color_byte}') # >> color_byte: (125, 125, 125)
print(f'color_rel: {color_rel}') # >> color_rel: (0.49019608, 0.49019608, 0.49019608)
as_int
Convert relative color values to byte values [0..255]
import rsproduction.styling.color as color
color_rel = (0.5, 0.5, 0.5)
color_byte = color.as_int(color_rel)
print(f'color_byte: {color_byte}') # >> color_byte: (127, 127, 127)
print(f'color_rel: {color_rel}') # >> color_rel: (0.5, 0.5, 0.5)
userinterface
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rsproduction-0.0.18.tar.gz
(8.3 kB
view details)
Built Distribution
File details
Details for the file rsproduction-0.0.18.tar.gz
.
File metadata
- Download URL: rsproduction-0.0.18.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dcfb424e0ccfc00a0c5b367aa60529ee39eed6d603c69b14a578a57599fda4a |
|
MD5 | 66d734d142afa797429a052b69fe37ca |
|
BLAKE2b-256 | 0da5ea8cbd489c471bd3a6fa22fb7af07de1027c4a4c1ab26231130d777e1d54 |
File details
Details for the file rsproduction-0.0.18-py3-none-any.whl
.
File metadata
- Download URL: rsproduction-0.0.18-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 742d1ca8af78351f6ee4d4491cd1b4eb6e9b2cbe74d9f7d8608e2d6d6d6705ed |
|
MD5 | f89ea40a58342e179995b6d10e36e196 |
|
BLAKE2b-256 | a6fd194f45e187072fba87415521eb8c5d110782a65576636e0962c56a47271f |