dA-tools.com

Shape obj

四角形(閉じた)シェイプ
var myShape = new Shape() ;
myShape.vertices = [[0,0], [0,100], [100,100], [100,0]];
myShape.closed = true;
“U”(開いた) シェイプ
var myShape = new Shape() ;
myShape.vertices = [[0,0], [0,100], [100,100], [100,0]];
myShape.closed = false;
楕円(閉じた)シェイプ
var myShape = new Shape() ;
myShape.vertices = [[300,50],[200,150],[300,250],[400,150]];
myShape.inTangents = [[55.23,0],[0,-55.23],[-55.23,0],[0,55.23][;
myShape.outTangents = [[-55.23,0],[0,55.23],[55.23,0],[0,-55.23]];
myShape.closed = true;
シェイプのアンカーポイント
myShape.vertices = [[0,0], [0,1], [1,1], [1,0]];