color-schemer 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ Compass::Frameworks.register("color-schemer", :path => "#{File.dirname(__FILE__)
3
3
 
4
4
  module ColorSchemer
5
5
 
6
- VERSION = "0.2.0"
6
+ VERSION = "0.2.1"
7
7
  DATE = "2011-09-15"
8
8
 
9
9
  end
@@ -1,6 +1,7 @@
1
1
  // Define color schemes quickly
2
2
 
3
3
  @import "color-schemer/defaults";
4
+ @import "color-schemer/cmyk";
4
5
  @import "color-schemer/ryb";
5
6
 
6
7
  @import "color-schemer/equalize";
@@ -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.0
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