You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using ColorMatric Class doesn't work.
I'v got a compilation error. It seems that extending Array isn't possible.
I have used a workaround changing ColorMatrix.hx :
package createjs.easeljs;
@:native("createjs.ColorMatrix")
extern class ColorMatrix{
public function new(brightness:Float, contrast:Float, saturation:Float, hue:Float):Void;
public function adjustBrightness(value:Float):ColorMatrix;
public function adjustColor(brightness:Float, contrast:Float, saturation:Float, hue:Float):ColorMatrix;
public function adjustContrast(value:Float):ColorMatrix;
public function adjustHue(value:Float):ColorMatrix;
public function adjustSaturation(value:Float):ColorMatrix;
public function clone():ColorMatrix;
public function concat(matrix:ColorMatrix):ColorMatrix;
public function copyMatrix(matrix:ColorMatrix):ColorMatrix;
public function reset():ColorMatrix;
public function toArray():Array<Dynamic>;
public static var DELTA_INDEX:Array<Float>;
public static var IDENTITY_MATRIX:Array<Int>;
}
and ColorMatricFilter.hx
package createjs.easeljs;
@:native("createjs.ColorMatrixFilter")
extern class ColorMatrixFilter extends Filter {
@:overload(function(matrix:ColorMatrix):Void{})
public function new(matrix:Array<Dynamic>):Void;
override public function clone():ColorMatrixFilter;
}
The text was updated successfully, but these errors were encountered:
dagnelies
added a commit
to dagnelies/CreateJS-Haxe
that referenced
this issue
Sep 7, 2015
Using ColorMatric Class doesn't work.
I'v got a compilation error. It seems that extending Array isn't possible.
I have used a workaround changing ColorMatrix.hx :
package createjs.easeljs;
@:native("createjs.ColorMatrix")
extern class ColorMatrix{
}
and ColorMatricFilter.hx
package createjs.easeljs;
@:native("createjs.ColorMatrixFilter")
extern class ColorMatrixFilter extends Filter {
}
The text was updated successfully, but these errors were encountered: