green

概要

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

[p5.js] green

サンプル

def setup
  background(220)

  c = color(20, 75, 200)
  fill(c)
  rect(15, 20, 35, 60)

  greenValue = green(c)    # Get green in 'c'
  fill(0, greenValue, 0)
  rect(50, 20, 35, 60)
end

構文

戻値