red

概要

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

[p5.js] red

サンプル

def setup
  background(220)

  c = color(255, 204, 0)
  fill(c)
  rect(15, 20, 35, 60)

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

構文

戻値