Sha256: deb5f3fc13698466047cc2ef74d5e2f9a09037600baa74eb3578e04500bfbeb5

Contents?: true

Size: 412 Bytes

Versions: 5

Compression:

Stored size: 412 Bytes

Contents

# example of processing blend_color (uses PImage blend_color under the hood)
# blend_color(c1, c2, MODE) returns a color int

def setup
  size 100, 100
  orange = color(204, 102, 0)
  blue = color(0, 102, 153)
  orangeblueadd = blend_color(orange, blue, ADD)
  background(51)
  noStroke()
  fill(orange)
  rect(14, 20, 20, 60)
  fill(orangeblueadd)
  rect(40, 20, 20, 60)
  fill(blue)
  rect(66, 20, 20, 60)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-processing-2.6.3 samples/processing_app/basics/color/blend_color.rb
ruby-processing-2.6.2 samples/processing_app/basics/color/blend_color.rb
ruby-processing-2.6.1 samples/processing_app/basics/color/blend_color.rb
ruby-processing-2.6.0 samples/processing_app/basics/color/blend_color.rb
ruby-processing-2.5.1 samples/processing_app/basics/color/blend_color.rb