blendMode

概要

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

[p5.js] blendMode

サンプル

def setup
  background(220)
  blendMode(LIGHTEST)
  strokeWeight(30)
  stroke(80, 150, 255)
  line(25, 25, 75, 75)
  stroke(255, 50, 50)
  line(75, 25, 25, 75)
end
def setup
  background(220)
  blendMode(MULTIPLY)
  strokeWeight(30)
  stroke(80, 150, 255)
  line(25, 25, 75, 75)
  stroke(255, 50, 50)
  line(75, 25, 25, 75)
end

構文

戻値