3 Replies Latest reply on Jul 10, 2017 8:17 PM by Colin Holgate

    Line width for .bezierCurveTo

    Leo Casado

      Hello,

       

      I am using the HTML5 Canvas code snippets to create a few bezier curves. Everything works fine (see project here), but I need to change the line thickness, and cannot find how to enter a line width parameter on the .bezierCurveTo. Here is a sample script that I am using for each curve:

       

      var shape =  new createjs.Shape(new createjs.Graphics().beginStroke(“#000000”).moveTo(X1,Y1).bezierCurveTo(X2,Y2,X3,Y3,X4,Y4) .endStroke());
      this.addChild(shape);

       

      Help!

       

      Leo