Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ColorMatrix.hx compilation problem #26

Open
dmouton opened this issue Sep 29, 2014 · 0 comments
Open

ColorMatrix.hx compilation problem #26

dmouton opened this issue Sep 29, 2014 · 0 comments

Comments

@dmouton
Copy link

dmouton commented Sep 29, 2014

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;

}

dagnelies added a commit to dagnelies/CreateJS-Haxe that referenced this issue Sep 7, 2015
dagnelies added a commit to dagnelies/CreateJS-Haxe that referenced this issue Sep 7, 2015
Second part described in nickalie#26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant