こんにちは、私は KineticJS の初心者で、プロパティ値を変更する方法を知りたいです。たとえば、作成後の長方形の場合:
var rect = new Kinetic.Rect({
x: 239,
y: 75,
width: 100,
height: 50,
fill: "#00D2FF",
stroke: "black",
strokeWidth: 4
});
このようなことをするにはどうすればよいですか:
rect.NewProperty({
x: 100,
y: 30,
width: 100,
height: 50,
fill: "#cccccc",
});
他のプロパティは同じままにしますか?