blue

概要

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

[p5.js] blue

サンプル

def setup
  background(220)

  c = color(175, 100, 220)
  fill(c)
  rect(15, 20, 35, 60)

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

構文

戻値