 
       # CMYK
       else if color.length is 4
-        color = (part / 100 for part in color)    
-    
+        color = (part / 100 for part in color)
+
       return color
-      
+
     return null
 
   _setColor: (color, stroke) ->

    @_opacityRegistry = {}
    @_opacityCount = 0
    @_gradCount = 0
    
  _normalizeColor: (color) ->
    if color instanceof PDFGradient
      return color
    
    if typeof color is 'string'
      if color.charAt(0) is '#'
        color = color.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i, "#$1$1$2$2$3$3") if color.length is 4
        hex = parseInt(color.slice(1), 16)
        color = [hex >> 16, hex >> 8 & 0xff, hex & 0xff]
         
      else if namedColors[color]
        color = namedColors[color]
        
    if Array.isArray color
      # RGB
      if color.length is 3


     @page.ext_gstates[name] = dictionary
     @addContent "/#{name} gs"

  linearGradient: (x1, y1, x2, y2) ->
    return new PDFLinearGradient(this, x1, y1, x2, y2)

  radialGradient: (x1, y1, r1, x2, y2, r2) ->
    return new PDFRadialGradient(this, x1, y1, r1, x2, y2, r2)

namedColors =
  aliceblue: [240, 248, 255]
  antiquewhite: [250, 235, 215]
