lib/rmthemegen/rgb_contrast_methods.rb in rmthemegen-0.0.3 vs lib/rmthemegen/rgb_contrast_methods.rb in rmthemegen-0.0.4
- old
+ new
@@ -1,7 +1,7 @@
require 'color'
-module ColorThemeGen
+class Color::RGB
# Outputs how much contrast this color has with another rgb color. Computes the same
# regardless of which one is considered foreground.
# If the other color does not have a to_rgb method, this will throw an exception
# anything over about 0.22 should have a high likelihood of begin legible.