arc

概要

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

[p5.js] arc

サンプル

def setup
  background(220)
  arc(50, 55, 50, 50, 0, HALF_PI)
  noFill()
  arc(50, 55, 60, 60, HALF_PI, PI)
  arc(50, 55, 70, 70, PI, PI + QUARTER_PI)
  arc(50, 55, 80, 80, PI + QUARTER_PI, TWO_PI)
end
def setup
  background(220)
  arc(50, 50, 80, 80, 0, PI + QUARTER_PI)
end
def setup
  background(220)
  arc(50, 50, 80, 80, 0, PI + QUARTER_PI, OPEN)
end
def setup
  background(220)
  arc(50, 50, 80, 80, 0, PI + QUARTER_PI, CHORD)
end
def setup
  background(220)
  arc(50, 50, 80, 80, 0, PI + QUARTER_PI, PIE)
end

構文

戻値