@Override
    CssFormatter appendColor( double color, String hint ) {
        if( !inlineMode() ) {
            int red = ColorUtils.red( color );
            if( red % 17 == 0 ) {
                int green = ColorUtils.green( color );
                if( green % 17 == 0 ) {
                    int blue = ColorUtils.blue( color );
                    if( blue % 17 == 0 ) {
                        super.append( '#' )
                        .append( Character.forDigit( red / 17, 16 ) )
                        .append( Character.forDigit( green / 17, 16 ) )
                        .append( Character.forDigit( blue / 17, 16 ) );
                        return this;
                    }
                }
            }
        }
        return super.appendColor( color, null );
    }
@ Override CssFormatter appendColor ( double color , String hint ) { if ( ! inlineMode ( ) ) { int red = ColorUtils . red ( color ) ; if ( red % 17 == 0 ) { int green = ColorUtils . green ( color ) ; if ( green % 17 == 0 ) { int blue = ColorUtils . blue ( color ) ; if ( blue % 17 == 0 ) { super . append ( '#' ) . append ( Character . forDigit ( red / 17 , 16 ) ) . append ( Character . forDigit ( green / 17 , 16 ) ) . append ( Character . forDigit ( blue / 17 , 16 ) ) ; return this ; } } } } return super . appendColor ( color , null ) ; }
Write a 3 digit color definition if possible.
{@inheritDoc}