ncannasse 10 lat temu
rodzic
commit
06914e2c46
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      h2d/filter/ColorMatrix.hx

+ 7 - 0
h2d/filter/ColorMatrix.hx

@@ -20,4 +20,11 @@ class ColorMatrix extends Filter {
 		return h2d.Tile.fromTexture(tout);
 		return h2d.Tile.fromTexture(tout);
 	}
 	}
 
 
+	public static function grayed() {
+		var m = new h3d.Matrix();
+		m.identity();
+		m.colorSaturation(0);
+		return new ColorMatrix(m);
+	}
+
 }
 }