https://github.com/smfsw/smfswcolor
Color handling and conversions (absolute and relative spaces)
https://github.com/smfsw/smfswcolor
cie color conversion hsv rgb
Last synced: about 2 months ago
JSON representation
Color handling and conversions (absolute and relative spaces)
- Host: GitHub
- URL: https://github.com/smfsw/smfswcolor
- Owner: SMFSW
- License: bsd-3-clause
- Created: 2018-11-19T23:13:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-29T22:51:35.000Z (over 3 years ago)
- Last Synced: 2025-02-04T00:33:24.547Z (3 months ago)
- Topics: cie, color, conversion, hsv, rgb
- Language: Python
- Homepage:
- Size: 380 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SMFSWcolor
Author: SMFSWAll the work involved here is dedicated to my beloved very special kitty Nietzschee
who brought some harmony in my life (miss you so much).Copyright (c) 2016-2018 SMFSW
This package includes various color schemes classes, low level conversions and transformation functions
## Classes:
- RefYYY: data dict classes
- ColXXX: color classes
- Color: multi-space color class## Low Level Algorithms:
- colorConv.py: raw conversions
- colorConvCIE.py: CIE 1931/1976 coordinates conversions
- colorConvGamma.py: Gamma expand & compress functions
- colorConvTemperature.py: Temperature calculations, conversions
- colorFuncs.py: raw transformations, manipulations
- colorScenarios.py: fading & scenarios calculations in different color models## GUI Interface:
Commit of these interfaces will follow along with updates
- ColorConverter.pyw
- ColorConverter_GUI.pyw# Basic usage:
- Multi space color:
- import colMulti
- declare an object of type Color('RGB', 0, 0, 0) with color space and corresponding values
- use get method on the object with given output space to get converted values
- when the need is only a direct conversion from space to space (close spaces):
- import colXXX _(XXX corresponding to desired source or destination space depending the need)_
- Source:
- declare an object of type colXXX(0, 0, 0) with corresponding values
- using toYYY method on the object returns the values of the destination space
- _YYY corresponding to desired destination space_
- Destination:
- declare an object of type colXXX()
- using fromYYY(0, 0, 0) method on the object fills it with the converted values
- _YYY(0, 0, 0) corresponding to desired source space with values from that space_## References and Links:
thanks for the help in making this package
- http://www.brucelindbloom.com/
- main reference in making this package (some material reproduced with permission)
- www.w3schools.com/colors/colors_converter.asp