private String morphColor ( String str ) { if ( str . equals ( "" ) ) { return "#000000" ; } if ( str . equals ( "white" ) ) { return "#ffffff" ; } if ( str . equals ( "black" ) ) { return "#000000" ; } return str ; }
Morph the color from a string