lib/rmthemegen/rgb_contrast_methods.rb in rmthemegen-0.0.23 vs lib/rmthemegen/rgb_contrast_methods.rb in rmthemegen-0.0.25
- old
+ new
@@ -1,8 +1,9 @@
-require 'color'
+#require 'color'
-class Color::RGB
+module Color
+ class 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.
@@ -91,7 +92,7 @@
# puts "next_gaussian: "+ y.to_s
return y
end
-end
-
+ end #class RGB
+end #module Color