
I don’t like things to be staged or fussy. Fashion moves so quickly that, unless you have a strong point of view, you can lose integrity. Sofia has a very average facade as you enter the city, but once you lose yourself in the old town area, everything changes.Ĭlothes can transform your mood and confidence. This was an easy city to navigate, and it was a beautiful city – despite its ugly, staunch and stolid communist-built surrounds. I had low expectations about Sofia as a city, but after the walking tour I absolutely loved the place. We were exhausted after a long day of travel, so we headed back to the hotel and crashed. We also do not need to check the length of the array, because we know that if 1 byte is 8 bits long, then a 32 bit integer has 4 bytes, always.Headed over Lions Bridge and made our way to the Sofia Synagogue, then sheltered in the Central Market Hall until the recurrent (but short-lived) mid-afternoon rain passed.įeeling refreshed after an espresso, we walked a short distance to the small but welcoming Banya Bashi Mosque, then descended into the ancient Serdica complex. So now that we know which index the byte is stored at, we canĪssign that byte to each one of our variables.

But the Alpha byte is not stored at the first index in the array, it's stored at the 4th index! Red at the third, green at the second, and blue is stored at the first. Red, Blue, Green is the order, and alphaĬomes first, so its ARGB. How do I know its in reversed order? Because you say RGB. Lets create 4 byte variables named the following: Alpha, Red, Green, Blueīecause of the endianness of an Int32, the bytes that correspond to the Alpha, Red, Green, and Blue bytes will be stored in the array, in reversed order. Now that we have retrieved the bytes of that Int32, we want to seperate them into something a bit more understandable to our eyes. This can be deceptive to people at first glance,īut I assure you that even the 32 bit number 0 represents a color(Black).

This is why the 32 bit number 1 can still represent a color that contains 4 values. An interesting point to make is that regardless of the character length of the Int32, the byte count will always be the same.
