This translation is community contributed and may not be up to date. We only maintain the English version of the documentation. Read this manual in English
パイノード(pie node)は、単純な円から扇形や四角いドーナツ形まで、円形または楕円形のオブジェクトを作成するために使用します。
Outline の Nodes セクションを 右クリック し、Add ▸ Pie を選択します。新しいパイノードが選択され、そのプロパティを変更できます。

パイノード固有のプロパティは次のとおりです。
Ellipse は、ノードを外側の半径まで広げます。Rectangle は、ノードをそのバウンディングボックス(bounding box)まで広げます。
ノードにテクスチャを設定すると、テクスチャ画像が平面的に貼り付けられ、テクスチャの各隅はノードのバウンディングボックスの各隅に対応します。
パイノードでは、サイズ、ピボット(pivot)、色などを設定する汎用のノード操作関数をすべて使用できます。パイノード専用の関数やプロパティもいくつかあります。
local pienode = gui.get_node("my_pie_node")
-- get the outer bounds
local fill_angle = gui.get_fill_angle(pienode)
-- increase perimeter vertices
local vertices = gui.get_perimeter_vertices(pienode)
gui.set_perimeter_vertices(pienode, vertices + 1)
-- change outer bounds
gui.set_outer_bounds(pienode, gui.PIEBOUNDS_RECTANGLE)
-- animate the inner radius
gui.animate(pienode, "inner_radius", 100, gui.EASING_INOUTSINE, 2, 0, nil, gui.PLAYBACK_LOOP_PINGPONG)
Did you spot an error or do you have a suggestion? Please let us know on GitHub!
GITHUB