lib/rays/painter.rb in rays-0.1.25 vs lib/rays/painter.rb in rays-0.1.26
- old
+ new
@@ -106,12 +106,24 @@
miter: JOIN_MITER,
round: JOIN_ROUND,
square: JOIN_SQUARE
}
+ const_symbol_accessor :blend_mode, **{
+ normal: BLEND_NORMAL,
+ add: BLEND_ADD,
+ subtract: BLEND_SUBTRACT,
+ lightest: BLEND_LIGHTEST,
+ darkest: BLEND_DARKEST,
+ exclusion: BLEND_EXCLUSION,
+ multiply: BLEND_MULTIPLY,
+ screen: BLEND_SCREEN,
+ replace: BLEND_REPLACE
+ }
+
universal_accessor :background, :fill, :stroke, :color,
:stroke_width, :stroke_cap, :stroke_join, :miter_limit,
- :nsegment, :shader, :clip, :font
+ :nsegment, :blend_mode, :shader, :clip, :font
private
def each_type(types, reverse: false, &block)
types = [:state, :matrix] if types.empty? || types.include?(:all)