hx2A / ColorBlindness

Processing library for simulating color blindness
Other
14 stars 2 forks source link

Can the color look up tables generated by DaltonizeGenerator be added to the repository for use in non-Processing applications? #2

Open RiteshSingh opened 2 years ago

RiteshSingh commented 2 years ago

Hi Jim,

Thank you so much for your great work and detailed educative explanation on your website πŸ™πŸΌπŸ™πŸΌ

I was just wondering if the color lookup tables generated by DaltonizeGenerator can be added to the repository for use in non-Processing applications?

Thanks again for your efforts πŸ™πŸΌπŸ™πŸΌ

hx2A commented 2 years ago

Hi @RiteshSingh !

The color lookup tables are quite large and take up 4 bytes for each of the 2**24 possible colors. I wouldn't want to put something like that in a git repo.

There might be other approaches here. It happens I am also the maintainer of py5, a Python version of Processing. It is probably possible to use py5 to write Python code that can export the lookup tables and put them in a numpy array. Then the data can be saved and used for other purposes.

RiteshSingh commented 2 years ago

Thank you for your most kind reply, Jim @hx2A.

Of course you are the best person to make a final decision, however, the look up tables are definitely more valuable for hundreds of applications other than Processing. It may even be said that they are hundreds of times more valuable.

I understand you want to keep this repository small. In that case, please do consider creating a separate repository for them.

Thanks again for all that you do πŸ™πŸΌπŸ™πŸΌ Ritesh

hx2A commented 2 years ago

@RiteshSingh , I thought github imposed size limits on repos? Checking in large files, or multiple versions of large files, can fill up a repo very quickly, so I try to avoid checking in data files. But if I provide a script that can generate the data files, wouldn't that provide the same end result?

RiteshSingh commented 2 years ago

Absolutely Jim @hx2A, an independent (non-Processing) script would also work splendidly.