Skip to content

Commit

Permalink
Added blendmode_enum= alias (#43)
Browse files Browse the repository at this point in the history
Added a convenience alias to align with default DragonRuby naming
  • Loading branch information
lucashaley authored Jun 19, 2024
1 parent e724589 commit 8de8296
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/zif/sprite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ def blend=(new_blendmode)
@blendmode = BLENDMODE.fetch(new_blendmode, new_blendmode)
end

alias blendmode_enum= blend=

# @return [Integer] The integer value for the specified blend mode. See {BLENDMODE}
# @example This always returns an integer, even if you set it using a symbol
# mysprite.blend = :alpha # => 1
Expand Down

0 comments on commit 8de8296

Please sign in to comment.