Tag: rgb

Colour Curve Correction
This is the third and final part of the tutorial dedicated to one of the most used Mathematical tools in Game Development: linear interpolation! In this part, we will explore how to use it to correct colour curves. You can find a link to download the C# scripts and the Unity package used at the…

The Secrets of Colour Interpolation
This post discusses about the tricky problem of colour interpolation, and explores possible solutions. Many software and engines offer readtouse functions to interpolate colours. In Unity, for instance, Color.Lerp is available and does its job pretty nicely. Use the interactive swatch below to see how Color.Lerp works. There’s nothing wrong in using these functions, as long as you know…

Everything You Need to Know About LEDs
Many game developers are easily scared by electronics. Even if Arduino has shifted most of the workload on its software side, there are applications which still need a good knowledge of circuitry. This post will teach how to use LEDs, from the most basic model to the most advanced one: LEDs are perfect for creative projects, and they can be…

The incredibly challenging task of sorting colours
Let’s start with something trivial: sorting numbers. Regardless of the algorithm you’ll use, real numbers are naturally ordered. Mathematically speaking, they have a total order, in the sense that you can always decide if a number is greater than another one. There is no ambiguity in this, meaning you can actually sort them, and (excluding duplicates) this sort is unique. There are other fields…

How to find the main colours in an image
—
In a previous post, I explained how I grabbed all the screenshots from #ScreenshotSaturday. If that was something relatively easy to implement, ordering them by colour is slightly trickier. The problem here is that there is no standard way to find the main colours in an image. Quite the opposite, different techniques will produce very different results. Long…