We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03951ef commit 5a73185Copy full SHA for 5a73185
1 file changed
color.rb
@@ -1,11 +1,11 @@
1
-#http://www.redguava.com.au/2011/10/lighten-or-darken-a-hexadecimal-color-in-ruby-on-rails/
2
-
3
COLOR_SCHEMES = {
4
default: ['#eeeeee', '#d6e685', '#8cc665', '#44a340', '#1e6823'],
5
halloween: ['#EEEEEE', '#FFEE4A', '#FFC501', '#FE9600', '#03001C'],
6
teal: ['#EEEEEE', "#7FFFD4", "#76EEC6", "#66CDAA", "#458B74"]
7
}
8
+#http://www.redguava.com.au/2011/10/lighten-or-darken-a-hexadecimal-color-in-ruby-on-rails/
+
9
# Amount should be a decimal between 0 and 1. Lower means darker
10
def darken_color(hex_color, amount=0.4)
11
hex_color = hex_color.gsub('#','')
0 commit comments