RubyGems Navigation menu

is_dark 0.0.9

Detects a dark color based on luminance W3 standarts ( https://www.w3.org/TR/WCAG20/#relativeluminancedef ). It has these options: * is a hex color dark * is an Imagick pixel dark * is an Imagick pixel from a blob dark * is an area in a blob over a dark background (uses Imagick for it too). An example practical aspect: it can be useful to understand will a black colored text be visible or not over an area.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.0.9 - April 15, 2024 (5.5 KB)
  2. 0.0.8 - April 14, 2024 (5.5 KB)
  3. 0.0.7 - July 08, 2023 (5.5 KB)
  4. 0.0.6 - July 07, 2023 (5.5 KB)
Show all versions (9 total)

Runtime Dependencies (1):

rmagick ~> 5.2

Owners:

Pushed by:

Authors:

  • Sergei Illarionov

SHA 256 checksum:

a2ad3d8d102eafcff6c1213e21a53f33a5aacf0e2a69e8c35c9bed48784cb102

Total downloads 2,599

For this version 159

License:

MIT

Required Ruby Version: >= 2.7.0

Links: