Get the latest tech news
Transforming Colors with Matrices
's one trick we use at work, and now I'm using in my current medieval village building game project, which apparently isn't as well-known as I thought: transforming colors using matrices, interpreting colors as 3D RGB or 4D RGBA vectors. In this article I'll try to explain how it works and which operations on colors can be represented this way.
In particular, the user can decide to e.g. roads darker, make buildings more saturated, and shift the hue of forests into the yellow region. Raw meshes in blender So, matrices can describe a wide range of color transformations (which we'll discuss in detail shortly), they are easy to combine and apply. How bad these problems are is a different question, but note that if a pixel is really close to being completely transparent, you probably won't notice the severe color quantization in it anyway.
Or read this on Hacker News