strokeJoin

def setup
  background(220)
  noFill
  strokeWeight(10.0)
  strokeJoin(MITER)
  beginShape
  vertex(35, 20)
  vertex(65, 50)
  vertex(35, 80)
  endShape
end
def setup
  background(220)
  noFill
  strokeWeight(10.0)
  strokeJoin(BEVEL)
  beginShape()
  vertex(35, 20)
  vertex(65, 50)
  vertex(35, 80)
  endShape
end
def setup
  background(220)
  noFill
  strokeWeight(10.0)
  strokeJoin(ROUND)
  beginShape
  vertex(35, 20)
  vertex(65, 50)
  vertex(35, 80)
  endShape
end

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

[p5.js] strokeJoin

概要

図形や文字などを描画する際の境界線の結合スタイルを設定します。

書式

strokeJoin(join)

引数

引数名内容備考オプションデフォルト値
join結合スタイルMITER : 留め継ぎ
BEVEL : そぎ継ぎ
ROUND : 丸み

戻値

なし

備考

関連

stroke