Skip to content

Commit 5a73185

Browse files
committed
Just moved it around a bit
1 parent 03951ef commit 5a73185

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

color.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#http://www.redguava.com.au/2011/10/lighten-or-darken-a-hexadecimal-color-in-ruby-on-rails/
2-
31
COLOR_SCHEMES = {
42
default: ['#eeeeee', '#d6e685', '#8cc665', '#44a340', '#1e6823'],
53
halloween: ['#EEEEEE', '#FFEE4A', '#FFC501', '#FE9600', '#03001C'],
64
teal: ['#EEEEEE', "#7FFFD4", "#76EEC6", "#66CDAA", "#458B74"]
75
}
86

7+
#http://www.redguava.com.au/2011/10/lighten-or-darken-a-hexadecimal-color-in-ruby-on-rails/
8+
99
# Amount should be a decimal between 0 and 1. Lower means darker
1010
def darken_color(hex_color, amount=0.4)
1111
hex_color = hex_color.gsub('#','')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy