I'm trying to write a script that will output something akin to this kind of rubiks cube art from a source image.
I found this HPPixelColorist code snippit using the HYPE framework that is getting me fairly close but I'm having trouble figuring out a way of converting the colors that are pulled from the image into the 6 colors that are on a rubiks cube.
What's the best way of going about this?
Here's my code right now. It's using the HYPE framework (which was too long to include in that snippit) and it requires a source image to run.