quadraticVertex

概要

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

[p5.js] quadraticVertex

サンプル

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

構文

戻値