In my apps I just end up creating a wrapper for those functions. I call
app.setFillColor(obj, ‘green’) or whatever other color name as string. And I define a special table that holds all those names as tables of color components. Like colors[‘green’] = {0, 255, 0}
It would make sense for setColor functions to accept tables as well.