Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Normalized RGB #129

Open
kleineluka opened this issue Jan 3, 2023 · 2 comments
Open

Support Normalized RGB #129

kleineluka opened this issue Jan 3, 2023 · 2 comments

Comments

@kleineluka
Copy link

Optionally support natively displaying normalized RGB colorspace, which can be calculated by dividing the standard RGB values by 255 respectively. This is particularly useful for game development, with things such as Unity and Shaders.

@Toinane
Copy link
Owner

Toinane commented Oct 27, 2023

Hey @lukasong thank you for the idea and sorry for my late response,
can you provide some examples of this feature? I don't really know what is it and I don't want to misunderstand what you want.

@kleineluka
Copy link
Author

I should have clarified in the original suggestion that you could find more looking at sRGB examples, such as on Wikipedia or Tom's Hardware. These values are specifically helpful for GPU development, where you can see examples with Shadertoy, Unity Game Development, or in ThreeJS. It is essentially the same 255 value range that RGB provides, but normalized into a 0-1 range. This makes the calculation for it very easy (just divide), but having it automatically do this would help a lot.

Sorry I accidentally closed/reopened!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants