AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() ![]() ![]() We will use eight bit color for our grayscale range and 24 bit for full color (eight bits for each of the red, green, and blue color components).īy adding the stroke() and fill() functions before something is drawn, we can set the color of any given shape. Imagine if we had eight bits (one byte) in sequence-how many ways can we configure these switches? The answer is (and doing a little research into binary numbers will prove this point) 256 possibilities, or a range of numbers between 0 and 255. This memory is just a long sequence of 0's and 1's (a whole bunch of on or off switches.) Each one of these switches is a bit, eight of them together is a byte. Color for a given shape needs to be stored in the computer's memory.
0 Comments
Read More
Leave a Reply. |