As you know, in Graphics class there is beginGradientFill
method to draw
beginGradientFill(type:String, colors:Array, alphas:Array,
ratios:Array, matrix:Matrix = null, spreadMethod:String = "pad",
interpolationMethod:String = "rgb", focalPointRatio:Number =
I saw that the first parameter "type:String" only have two
values: "linear" or "radial". In photoshop, beside theses there are
"angle", "reflected", "diamond" gradient type also.
So which class (or libraries etc) I can use in order to
create "angle", "reflected", "diamond" gradient using fully
Or "angle", "reflected", "diamond" gradient type can not be
implemented using AS?
Could anyone point me to the right direction?
many thanks and best regards
where rotated_matrix is a function like
private function rotated_matrix(x:Number, y:Number,
w:Number, h:Number, rot:Number):Matrix
tempMatrix = new Matrix();
tempMatrix.createGradientBox(w, h, rot*Math.PI/180, x, y);
I don't know what the "reflected" or "diamond" patterns look
like but maybe this would solve the "angle" one?