getColorByAttribute

Returns the int value of an attribute