Tag: rgb

May

Converting HSL to RGB

There seems to be 5 flavours of the “HSL”: HSL: Hue, Saturation, Lightness HSL: Hue, Saturation, Luminance HSV: Hue, Saturation, Value HSB: Hue, Saturation, Brightness HSI: Hue, Saturation, Intensity I don’t understand why there are so many variants. I like RGB. I needed a way to convert HSL (the luminance version) to RGB. Now .NET […]

Jan

Colour of numbers

I was mucking around in my image editor (Paint.NET) because I was doing some CSS colour editing. While I was playing around with the HSV of the colour, I saw this in the RGB box: 314159. You know what that reminds me of? PI. No, not that pie, PI! Great, now I’m hungry… So I […]

Aug

Basic colour theory for programmers

Alright, this is a crash course in basic colour theory. If you’re a game programmer, or web developer or anyone who will deal with colour at some point in his programming career, what you will read here is crucial. Let’s begin. Colour models You will most often deal with the RGB model, where red, green […]

Aug

CSS colours and hexadecimal

CSS, which stands for Cascading Style Sheets, allows you to work design wonders with your HTML. A web page is split into two parts, the design and look versus the data and functions of the page. And CSS is the main driving force behind the former. Aaron’s article gives an excellent introduction to this separation […]