def setup
background(220)
strokeWeight(5)
point(20, 20)
point(80, 20)
point(50, 50)
noFill
strokeWeight(1)
beginShape
vertex(20, 20)
quadraticVertex(80, 20, 50, 50)
endShape
end
def setup
background(220)
strokeWeight(5)
point(20, 20)
point(80, 20)
point(50, 50)
point(20, 80)
point(80, 80)
point(80, 60)
noFill
strokeWeight(1)
beginShape
vertex(20, 20)
quadraticVertex(80, 20, 50, 50)
quadraticVertex(20, 80, 80, 80)
vertex(80, 60)
endShape
end
二次ベジェ曲線の頂点座標を指定します。
| 引数名 | 内容 | 備考 | オプション | デフォルト値 |
|---|---|---|---|---|
| cx | 制御点の x座標 | |||
| cy | 制御点の y座標 | |||
| x3 | 基準点の x座標 | アンカーポイント | ||
| y3 | 基準点の y座標 | アンカーポイント | ||
| cz | 制御点の z座標 | WEBGLモードのキャンバスでのみ有効 | ||
| z3 | 基準点の z座標 | WEBGLモードのキャンバスでのみ有効 |
なし
・「beginShape ~ endShape」構文または「shape do ~ end」構文の中でのみ有効です。