markkness / colorpy Goto Github PK
View Code? Open in Web Editor NEWPhysical color calculations in Python.
License: GNU Lesser General Public License v2.1
Physical color calculations in Python.
License: GNU Lesser General Public License v2.1
It would be useful to be able to convert between two different RGB color spaces, but it looks like this isn't currently possible since the colormodels.init()
function uses globals so only one space is defined at any time. In particular, I would like to convert between sRGB (the default) and a custom RGB space for a specific RGB LED.
Some functions already work with numpy args (e.g., xyz_from_rgb
) but others use functions or constructs that are not numpy aware (e.g., rgb_from_irgb
uses float()
and lab_from_xyz
uses scalar '>'). This issue is a feature request to make all functions numpy compatible so that arrays can be converted with a single call instead of requiring (much slower) loops.
ColorPy at present is only Python2.x, it would be better if Python3 was also supported.
Some culprits are old-style print statements, and some exception raising syntax.
Hi,
When I import colorpy.colormodels
on my python 3.9.7 kernel, I get the following error:
ModuleNotFoundError Traceback (most recent call last)
/script/run.ipynb Cell 3 in <cell line: 1>()
----> 1 import colorpy.colormodels
ModuleNotFoundError: No module named 'colorpy'
The index used in ciexyz.xyz_from_wavelength() is intended to be an integer, but is actually a floating point type with an integral value. It should be explicitly converted to an integer to avoid a deprecation warning.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.