Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world
graphic_design·Graphic Designby5teverin0

Converting RGB values to percentages

I ran across a table of settings for Photoshop's channel mixer for simulating various analog film stocks. However, the RGB color values are given as numbers in the 0-255 range, and channel mixer uses percentages. Any idea how to convert the RGB values to plug them into channel mixer?

View original on lemmy.world
4

4 replies

lemmy.world

If I'm understanding you correctly, I'll use the variables C for Channel (R, G, or B), and P for Percentage...

P = C / 2.55

C = P * 2.55

3

Yeah, assuming it's a linear percentage, this should be basic rule of three. So, divide by 255, then multiply by 100.
Dividing by 2.55 is just doing that in one step...

1

Divide the RGB values by 255? That will give you a number between 0 and 1, so just multiply that by 100 to get the percentage. Unless I'm misunderstanding what exactly you need to input into Photoshop.

1

You reached the end