Advertisement


How to use Photoshop to convert an image into 6 solid colors?


Question

I'm attempting to make some simple rubiks cube art like this:

example of rubiks cube art

I'd quite like to see what a source image is going to look like before buying a load of rubiks cubes and solving them for hours.

Is there an easy way in photoshop of converting a regular image into 6 different, solid colors? I figure once I have that base of 6 different colors it will be relatively easy to convert them to the 6 colors on a rubiks cube.

2016/05/22
1
8
5/22/2016 4:21:00 PM

Accepted Answer

  1. Take your image

original image

  1. Pixelate your image. Work out the exact number of Rubiks cube cells you will have and make your image that size in pixels, so 1 cell = 1 pixel.

pixelated image

If you don't know what scale you want to work at, don't know how many cubes you want to use etc. Using the Mosaic effect (Filter → Pixelate → Mosiac...) will help you preview quickly.

mosaic filter

  1. Set a Gradient Map adjustment layer over your image with your chosen colors. To prevent the gradient between colors just double up each color and set the next color directly next to the previous. You can see how I set up my gradient:

gradient map

Your result may not work exactly as intended. You can play with the levels in your original image and the distribution of colors in your gradient map to get a better result.

resulting image

It's worth noting that you will most probably still get some variations on color from the gradient map but you can manually redraw any problem areas. As a quick preview this is probably fine. If you truly want only 6 colors you can convert your image to indexed color with a palette of only the 6 colors you want.

These images can be fairly unrecognisable when you are zoomed in so if you are manually redrawing areas, use the navigator window to keep a preview visible.

image with navigator window

2016/05/22
12
5/22/2016 7:43:00 PM