CreateJs如何控制setTransform

时间:2014-04-18 06:36:02

标签: text createjs

我有以下代码负责呈现文本。但目前文本水平显示,任何帮助使文本垂直。

       this.shape_10 = new cjs.Text("Super", "bold 17px Arial", "#FFA632");
        this.shape_10.lineHeight = 8;
        this.shape_10.lineWidth = 13;
       this.shape_10.setTransform(-1.5, -9);

1 个答案:

答案 0 :(得分:3)

90属于在线下旋转90度。

   this.shape_10 = new cjs.Text("Super", "bold 17px Arial", "#FFA632");
   this.shape_10.lineHeight = 8;
   this.shape_10.lineWidth = 13;
   this.shape_10.setTransform(25, -118, 1.0, 1.0, 90, 0, 0, -30, 1.0);