       @toXYZ Rgb, T
 
   init: ->
-    if not @baseXYZ?
+    if not @base?
       # create xyz base (luminance is unknown => need to multiply each column by a scalar)
       bxyz = M [
             @red.x         ,     @green.x           ,     @blue.x



class RgbCS
  constructor: (@white, @red, @green, @blue, @g) ->
    @gInv = 1 / g
    # assume: white.Y = 1
    @fromXYZ = (XYZ, T) ->


      delete @toXYZ
      delete @fromXYZ
      return

  gamma: (x) ->
    pow(x, @g)
