Gradient fill

var g = new createjs.Graphics();
g.setStrokeStyle(1);
g.beginStroke("#000000");
g.beginLinearGradientFill(["#000","#FFF"], [0,1], 0, 20, 0,  120);
g.drawRect(20, 20, 200, 100);
var bg = new createjs.Shape(g);
this.addChildAt(bg);
    

Die Argumente von beginLinearGradientFill findet man in der EaselJS Api Dokumentation

gradient Info

weiter

Zurück