the reason white is 1 and black is 0 is because pixels are normally lights, so when white is displayed the light is lit, but is not lit when the colour black is displayed
Thank you That was very straightforward and clear. I wanted to ask why 3 bits is not 9, but 4 bits is 16. All number but 3 are raised to the power of 2. Is that correct?
Indexing starts from zero i.e. for 4 bits: 1*2^0 + 1*2^1 + 1*2*2 + 1*2^3 = 15 In binary: 1111 We take 2 to the power of the digit we’re talking about (starting from zero). The 1’s represent 4 “1” boys if you will.
the reason white is 1 and black is 0 is because pixels are normally lights, so when white is displayed the light is lit, but is not lit when the colour black is displayed
the 12% at the top right corner gave me instant anxiety
This is gold for me, am trying to make a video player for an oled display who's resolution is just 128x64 pixels.
Thank you for the feedback, most appreciated.
So Zeb and the Wizard set to work and took off the wheels and the top, and then they put the buggy edgewise, so it would take up the smallest space.
My answer to the question:
White in RGB is (255, 255, 255) and Black is (0, 0, 0) if we take the average we get 1 for white and 0 for black
thank you, that was helpful ♥
You're so welcome!
I couldn't figure out why 0 for black and 1 for white ...please explain
It is because black is the absence of colour, hence 0.
Just one question. The positions:
Is 0,0 at top or bottom?
At the left top corner
In math it's on the bottom left, but most of the time in computers it's the top left.
Thank you
That was very straightforward and clear.
I wanted to ask why 3 bits is not 9, but 4 bits is 16. All number but 3 are raised to the power of 2. Is that correct?
Indexing starts from zero i.e. for 4 bits:
1*2^0 + 1*2^1 + 1*2*2 + 1*2^3 = 15
In binary:
1111
We take 2 to the power of the digit we’re talking about (starting from zero).
The 1’s represent 4 “1” boys if you will.
Thank you for the feedback. The reason why 3 bits is not 9 is that it is not 3^2 but 2^3, so not 9 but 8.
Also how may I create a file from scratch? (C++)
❤