curveVertex

def setup
  background(220)
  strokeWeight(5)
  point(84, 91)
  point(68, 19)
  point(21, 17)
  point(32, 91)
  strokeWeight(1)

  noFill
  beginShape
  curveVertex(84, 91)
  curveVertex(84, 91)
  curveVertex(68, 19)
  curveVertex(21, 17)
  curveVertex(32, 91)
  curveVertex(32, 91)
  endShape
end

p5.jsリファレンス(参考情報)

[p5.js] curveVertex

概要

曲線の頂点座標を指定します。

書式

curveVertex(x, y)
curveVertex(x, y, z)

引数

引数名内容備考オプションデフォルト値
x頂点の x座標
y頂点の y座標
z頂点の z座標WEBGLモードのキャンバスでのみ有効

戻値

なし

備考

・「beginShape ~ endShape」構文または「shape do ~ end」構文の中でのみ有効です。

関連

beginShape
endShape
shape