Naming in a Table

Hi,

I made this really simple table to define all of my colors. There are about 80 colors and everything was working great until I needed a color name to have a space in it. Is there any way to list “powder blue” with a space in it? I display the name on the screen later, so removing the space creates a problem.

local M = {}

M.colorTable = {

            pistachio = {174/255,203/255,128/255},

            plum = {95/255,43/255,80/255},

            powder blue = {153/255,193/255,211/255}

            }

Thanks!

Use under score or any other character that you will never have in a name and replace it with a space before displaying it.

Thank you! That worked. I replaced the underscore like this:

(string.gsub ((playColor),"_", " "))

heres you one i made for gpx2.0 has 126 colors

http://developer.coronalabs.com/code/rgb

Use under score or any other character that you will never have in a name and replace it with a space before displaying it.

Thank you! That worked. I replaced the underscore like this:

(string.gsub ((playColor),"_", " "))

heres you one i made for gpx2.0 has 126 colors

http://developer.coronalabs.com/code/rgb