You have to define the RGB values of your colors.
Suggestions:
- Make a table of your color palette
- Make a routine that find the closest color from an RGB and returns the color in your color palette
- Try the 2 above with a routine that scans X and Y and replaces all colors with the resulting color from the "closest palette color" routine
Suggestions:
- Make a table of your color palette
- Make a routine that find the closest color from an RGB and returns the color in your color palette
- Try the 2 above with a routine that scans X and Y and replaces all colors with the resulting color from the "closest palette color" routine