private void setStrokeColor ( Color3f color ) { if ( cacheStrokeR == color . x && cacheStrokeG == color . y && cacheStrokeB == color . z ) { // no need to re-set the stroke color, just use the cached values } else { cacheStrokeR = color . x ; cacheStrokeG = color . y ; cacheStrokeB = color . z ; setStrokeColorFromCache ( ) ; } }
Sets the stroke color from a Color3f