I was experimenting with colour distances at work today. I need to find out how similar two colours are, so I wrote a little test program and it was surprisingly pretty.
The algorithm is simple:
Fill the canvas with random colours.
Set the first pixel (top left) to red.
For all pixels, find the most similar pixel and move it next to the current pixel.
To determine the similarity, I calculated the 3D distance in the RGB, HSV and YUV color spaces, which brought very different results. Now, it's quite possible that my HSV and YUV conversion functions were just broken, but that's okay.
I also tried turning the comparison function around, such that it looks for the furthest colour instead of the closest one, which also resulted in some interesting patterns.
> RFont: Simple single header modular font rendering library. The library is designed to be lightweight while also supporting the ablitiy to add your own rendering system. https://github.com/ColleagueRiley/RFont
Hey there, Citra fans! (We haven’t used that one for a while, have we?) You’ve all wanted it and we’ve heard your cries and pleas. Vulkan has arrived and is here to stay, available now in the latest Citra release! Why Vulkan? Since the dawn of time — well, since Citra’s creation — many, many users have requested we...
An experiment made in a game jam in 2015. I didn't have a game idea to go with it, but I wanted to experiment with a 3D map that scrolled like a conveyor belt.
I wasn't good with shaders back in the day, so I had to work some more time after the jam to get this result. I added the tutorial more recently.
Some footage from First Plague, our runner made in a game jam in 2020, mixing 2D objects in a 3D world, which will be part of the collection we'll release soon.
As an Egyptian in his boat on the Nile, try to escape the River of Blood while saving the unlucky Nile inhabitants on the shores!
It's a LOT easier to maintain. And even though it's reading up to 128 bytes instead of 1, I think there is no big #performance difference unless all transforms are tightly packed.
you know, making your own engine game from low level framework and gpu apis is a humbling experience and really makes you appreciate the work put in projects like #godotengine ! But it is a really valuable learning experience! I love having my hand on the bare metal... trough a glove.. on top of the casing... using a stick. Let's agree for almost bare metal!
Look! spinning monkey and pine trees! #SDL#OpenGL#C
First Plague, a runner started in a game jam in 2020 where you must escape the Nile being turned into blood, and save as many inhabitants along the way.
The Vulkan-o erupts - Citra Vulkan is here! · Citra (citra-emu.org)
Hey there, Citra fans! (We haven’t used that one for a while, have we?) You’ve all wanted it and we’ve heard your cries and pleas. Vulkan has arrived and is here to stay, available now in the latest Citra release! Why Vulkan? Since the dawn of time — well, since Citra’s creation — many, many users have requested we...