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

What does this sentence mean?Thanks #35

Open
1-riverfish opened this issue Jun 11, 2017 · 2 comments
Open

What does this sentence mean?Thanks #35

1-riverfish opened this issue Jun 11, 2017 · 2 comments

Comments

@1-riverfish
Copy link

we have a color depth of 24 (8 * 3) bits and we can also infer that we could use 2 to the power of 24 different colors.
Can you give me an example?

@leandromoreira
Copy link
Owner

Hi @1-riverfish,

Assuming we have 3 rgb channels: R, G and B. Each channel requires a byte (8bits). If one needs to define a single color he/she will use 24bits (or the three channels).

Let's define some color out of my mind:

black: 0 (R), 0 (G), 0 (B)
black1: 1 (R), 0 (G), 0 (B)
...

Thus we can infer that we can have 2^24 color option, is it more clear for you?

@1-riverfish
Copy link
Author

1-riverfish commented Jun 12, 2017 via email

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