color-schemer 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/color-schemer.rb +1 -1
- data/stylesheets/_color-schemer.scss +1 -0
- data/stylesheets/color-schemer/_cmyk.scss +14 -0
- metadata +2 -1
data/lib/color-schemer.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
@function cmyk($cyan, $magenta, $yellow, $black) {
|
2
|
+
|
3
|
+
// Get the color values out of white
|
4
|
+
$cyan : mix(cyan , white, $cyan );
|
5
|
+
$magenta : mix(magenta, white, $magenta);
|
6
|
+
$yellow : mix(yellow , white, $yellow );
|
7
|
+
$black : mix(black , white, $black );
|
8
|
+
|
9
|
+
// Subtract the colors from white
|
10
|
+
$color: white - invert($cyan) - invert($magenta) - invert($yellow) - invert($black);
|
11
|
+
|
12
|
+
|
13
|
+
@return $color;
|
14
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: color-schemer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -37,6 +37,7 @@ extra_rdoc_files: []
|
|
37
37
|
files:
|
38
38
|
- lib/color-schemer.rb
|
39
39
|
- stylesheets/_color-schemer.scss
|
40
|
+
- stylesheets/color-schemer/_cmyk.scss
|
40
41
|
- stylesheets/color-schemer/_color-adjustments.scss
|
41
42
|
- stylesheets/color-schemer/_color-schemer.scss
|
42
43
|
- stylesheets/color-schemer/_defaults.scss
|