           0, 1, 0, 0, g,
           0, 0, 1, 0, b,
           0, 0, 0, 1, 0 ]
-      );
-    }
-
-    public function adjustHue( degrees:Number ):void {
-      degrees *= RAD;
-      var cos:Number = Math.cos( degrees );
-      var sin:Number = Math.sin( degrees );
-
-      concat(
-        [ ((LUMA_R + (cos * (1 - LUMA_R))) + (sin * -(LUMA_R))),
-          ((LUMA_G + (cos * -(LUMA_G))) + (sin * -(LUMA_G))),
-          ((LUMA_B + (cos * -(LUMA_B))) + (sin * (1 - LUMA_B))),
-          0, 0,
-
-          ((LUMA_R + (cos * -(LUMA_R))) + (sin * 0.143)),
-          ((LUMA_G + (cos * (1 - LUMA_G))) + (sin * 0.14)),
-          ((LUMA_B + (cos * -(LUMA_B))) + (sin * -0.283)),
-          0, 0,
-
-          ((LUMA_R + (cos * -(LUMA_R))) + (sin * -((1 - LUMA_R)))),
-          ((LUMA_G + (cos * -(LUMA_G))) + (sin * LUMA_G)),
-          ((LUMA_B + (cos * (1 - LUMA_B))) + (sin * LUMA_B)),
-          0, 0,
-
-          0, 0, 0, 1, 0 ]
-      );
-    }
-
-    public function rotateHue( degrees:Number ):void {
-      initHue();
-
-      concat( preHue.matrix );
-      rotateBlue( degrees );
-      concat( postHue.matrix );
-    }
-
-    public function luminance2Alpha():void {
-      concat(
-        [ 0, 0, 0, 0, 255,
-          0, 0, 0, 0, 255,
-          0, 0, 0, 0, 255,
-          LUMA_R, LUMA_G, LUMA_B, 0, 0 ]
-      );
-    }
-
-    public function adjustAlphaContrast( amount:Number ):void {
-      amount += 1;
-      concat(
-        [ 1, 0, 0, 0, 0,
-          0, 1, 0, 0, 0,
-          0, 0, 1, 0, 0,
-          0, 0, 0, amount, (128 * (1 - amount)) ]
       );
     }
 

      );
    }

    /*
      Function: adjustContrast

      Changes the contrast

      Parameters:
        s - typical values come in the range -1.0 ... 1.0 where
              -1.0 means no contrast (grey)
              0 means no change
              1.0 is high contrast

      Returns: void
    */
    public function adjustContrast( r:Number, g:Number = NaN, b:Number = NaN ):void {
      if( isNaN( g ) ) { g = r; }
      if( isNaN( b ) ) { b = r; }
      r += 1;
      g += 1;
      b += 1;

      concat(
        [ r, 0, 0, 0, (128 * (1 - r)),
          0, g, 0, 0, (128 * (1 - g)),
          0, 0, b, 0, (128 * (1 - b)),
          0, 0, 0, 1, 0 ]
      );
    }

    public function adjustBrightness( r:Number, g:Number=NaN, b:Number = NaN ):void {
      if( isNaN( g ) ) { g = r; }
      if( isNaN( b ) ) { b = r; }

      return new ColorMatrix( matrix );
    }

    /*
      Function: adjustSaturation

