Skip to content

Commit

Permalink
version 0.2.1 bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
butteff committed Jan 30, 2025
1 parent d59d8a6 commit 830c3db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion is_dark.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = 'is_dark'
s.version = '0.2.0'
s.version = '0.2.1'
s.summary = 'Detects a dark background under an area or by a color code'
s.description = 'Detects a dark color based on luminance W3 standarts ' \
"( https://www.w3.org/TR/WCAG20/#relativeluminancedef ). \n\n " \
Expand Down
2 changes: 1 addition & 1 deletion lib/is_dark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def magick_area_from_blob(x, y, blob, height, width)
dots = []
@matrix.each do |xx|
@matrix.each do |yy|
dots << { x: (x + (width * xx / 10)).to_i, y: (y + (height * yy / 10)).to_i }
dots << { x: (x + (width * xx / @matrix.count)).to_i, y: (y + (height * yy / @matrix.count)).to_i }
end
end

Expand Down

0 comments on commit 830c3db

Please sign in to comment.