<h1>RSProduction</h1>
A very usefull library for python development.
<h2>Table of Contents</h2>
- [1 Submodules](#1-submodules)
- [styling](#styling)
- [color](#color)
- [Constants](#constants)
- [Methods](#methods)
- [userinterface](#userinterface)
# 1 Submodules
rsproduction<br>
┣ [styling](#styling)<br>
┃ ┗ [color](#color)<br>
┗ [userinterface](#userinterface)
## styling
### color
#### Constants
<h5>BLACK</h5>
<span style="background-color:rgb(0, 0, 0)">__</span>
<h5>WHITE</h5>
<span style="background-color:rgb(255, 255, 255)">__</span>
<h5>LIGHT_GRAY</h5>
<span style="background-color:rgb(204, 204, 204)">__</span>
<h5>DARK_GRAY</h5>
<span style="background-color:rgb(102, 102, 102)">__</span>
<h5>CORNFLOWER_BLUE</h5>
<span style="background-color:rgb(153, 153, 255)">__</span>
<h5>DARKRED</h5>
<span style="background-color:rgb(139, 0, 0)">__</span>
<h5>FOCUSED</h5>
<span style="background-color:rgb(153, 153, 255)">__</span>
<h5>FOREGROUND</h5>
<span style="background-color:rgb(0, 0, 0)">__</span>
<h5>FOREGROUND_DISABLED</h5>
<span style="background-color:rgb(102, 102, 102)">__</span>
#### Methods
```python
def bgr2rgb(color) # convert a BGR color to RGB color
def rgb2bgr(color) # convert a RGB color to BGR color
```
<h5>bgr2rgb</h5>
Convert a BGR color to RGB color
```python
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)
```
<h5>rgb2bgr</h5>
Convert a RGB color to BGR color
```python
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)
```
<h5>as_float</h5>
Convert byte color values to relative values [0..1]
```python
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)
```
<h5>as_int</h5>
Convert relative color values to byte values [0..255]
```python
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
Raw data
{
"_id": null,
"home_page": "https://github.com/SchulzR97/OpenCV-UI",
"name": "rsproduction",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "python, OpenCV, UI, UserInterface, Frontend",
"author": "Robert Schulz",
"author_email": "schulzr256@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/0d/a5/ea8cbd489c471bd3a6fa22fb7af07de1027c4a4c1ab26231130d777e1d54/rsproduction-0.0.18.tar.gz",
"platform": null,
"description": "<h1>RSProduction</h1>\n\nA very usefull library for python development.\n\n<h2>Table of Contents</h2>\n\n- [1 Submodules](#1-submodules)\n - [styling](#styling)\n - [color](#color)\n - [Constants](#constants)\n - [Methods](#methods)\n - [userinterface](#userinterface)\n\n\n# 1 Submodules\nrsproduction<br>\n\u2523 [styling](#styling)<br>\n\u2503 \u2517 [color](#color)<br>\n\u2517 [userinterface](#userinterface)\n\n## styling\n### color\n\n#### Constants\n<h5>BLACK</h5>\n<span style=\"background-color:rgb(0, 0, 0)\">__</span>\n\n<h5>WHITE</h5>\n<span style=\"background-color:rgb(255, 255, 255)\">__</span>\n\n<h5>LIGHT_GRAY</h5>\n<span style=\"background-color:rgb(204, 204, 204)\">__</span>\n\n<h5>DARK_GRAY</h5>\n<span style=\"background-color:rgb(102, 102, 102)\">__</span>\n\n<h5>CORNFLOWER_BLUE</h5>\n<span style=\"background-color:rgb(153, 153, 255)\">__</span>\n\n<h5>DARKRED</h5>\n<span style=\"background-color:rgb(139, 0, 0)\">__</span>\n\n<h5>FOCUSED</h5>\n<span style=\"background-color:rgb(153, 153, 255)\">__</span>\n\n<h5>FOREGROUND</h5>\n<span style=\"background-color:rgb(0, 0, 0)\">__</span>\n\n<h5>FOREGROUND_DISABLED</h5>\n<span style=\"background-color:rgb(102, 102, 102)\">__</span>\n\n#### Methods\n\n```python\ndef bgr2rgb(color) # convert a BGR color to RGB color\ndef rgb2bgr(color) # convert a RGB color to BGR color\n```\n\n<h5>bgr2rgb</h5>\n\nConvert a BGR color to RGB color\n```python\nimport rsproduction.styling.color as color\n\ncolor_bgr = (56, 73, 54)\ncolor_rgb = color.bgr2rgb(color_bgr)\n\nprint(f'color_bgr: {color_bgr}') # >> color_bgr: (56, 73, 54)\nprint(f'color_rgb: {color_rgb}') # >> color_rgb: (54, 73, 56)\n```\n\n<h5>rgb2bgr</h5>\n\nConvert a RGB color to BGR color\n```python\nimport rsproduction.styling.color as color\n\ncolor_rgb = (56, 73, 54)\ncolor_bgr = color.bgr2rgb(color_bgr)\n\nprint(f'color_bgr: {color_bgr}') # >> color_bgr: (54, 73, 56)\nprint(f'color_rgb: {color_rgb}') # >> color_rgb: (56, 73, 54)\n```\n\n<h5>as_float</h5>\n\nConvert byte color values to relative values [0..1]\n```python\nimport rsproduction.styling.color as color\n\ncolor_byte = (125, 125, 125)\ncolor_rel = color.as_float(color_byte)\n\nprint(f'color_byte: {color_byte}') # >> color_byte: (125, 125, 125)\nprint(f'color_rel: {color_rel}') # >> color_rel: (0.49019608, 0.49019608, 0.49019608)\n```\n\n<h5>as_int</h5>\n\nConvert relative color values to byte values [0..255]\n```python\nimport rsproduction.styling.color as color\n\ncolor_rel = (0.5, 0.5, 0.5)\ncolor_byte = color.as_int(color_rel)\n\nprint(f'color_byte: {color_byte}') # >> color_byte: (127, 127, 127)\nprint(f'color_rel: {color_rel}') # >> color_rel: (0.5, 0.5, 0.5)\n```\n\n## userinterface\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "An OpenCv-based frontend library",
"version": "0.0.18",
"project_urls": {
"Homepage": "https://github.com/SchulzR97/OpenCV-UI"
},
"split_keywords": [
"python",
" opencv",
" ui",
" userinterface",
" frontend"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a6fd194f45e187072fba87415521eb8c5d110782a65576636e0962c56a47271f",
"md5": "f89ea40a58342e179995b6d10e36e196",
"sha256": "742d1ca8af78351f6ee4d4491cd1b4eb6e9b2cbe74d9f7d8608e2d6d6d6705ed"
},
"downloads": -1,
"filename": "rsproduction-0.0.18-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f89ea40a58342e179995b6d10e36e196",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 8124,
"upload_time": "2024-09-26T00:26:07",
"upload_time_iso_8601": "2024-09-26T00:26:07.373875Z",
"url": "https://files.pythonhosted.org/packages/a6/fd/194f45e187072fba87415521eb8c5d110782a65576636e0962c56a47271f/rsproduction-0.0.18-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0da5ea8cbd489c471bd3a6fa22fb7af07de1027c4a4c1ab26231130d777e1d54",
"md5": "66d734d142afa797429a052b69fe37ca",
"sha256": "5dcfb424e0ccfc00a0c5b367aa60529ee39eed6d603c69b14a578a57599fda4a"
},
"downloads": -1,
"filename": "rsproduction-0.0.18.tar.gz",
"has_sig": false,
"md5_digest": "66d734d142afa797429a052b69fe37ca",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8323,
"upload_time": "2024-09-26T00:26:09",
"upload_time_iso_8601": "2024-09-26T00:26:09.505534Z",
"url": "https://files.pythonhosted.org/packages/0d/a5/ea8cbd489c471bd3a6fa22fb7af07de1027c4a4c1ab26231130d777e1d54/rsproduction-0.0.18.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-26 00:26:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "SchulzR97",
"github_project": "OpenCV-UI",
"github_not_found": true,
"lcname": "rsproduction"
}