Permalink
Browse files

๐Ÿ›  mode -> notation

  • Loading branch information...
1 parent 2ecef6c commit ab622f4d279f09d552a3ee46a477a1866bddf644 @desandro desandro committed Nov 10, 2016
Showing with 5 additions and 4 deletions.
  1. +1 โˆ’1 README.md
  2. +2 โˆ’2 huebee.js
  3. +2 โˆ’1 sandbox/basic.html
View
@@ -115,7 +115,7 @@ var hueb = new Huebee( '.color-input', {
// 3 saturations => [ 100% saturation, 66% saturation, 33% saturation ]
// default: 3
- mode: 'hex',
+ notation: 'hex',
// the text syntax of colors
// values: shortHex, hex, hsl
// shortHex => #F00, hex => #FF0000, hsl => hsl(0, 100%, 50%)
View
@@ -60,7 +60,7 @@ Huebee.defaults = {
hue0: 0,
shades: 5,
saturations: 3,
- mode: 'shortHex',
+ notation: 'shortHex',
setText: true,
setBGColor: true,
};
@@ -269,7 +269,7 @@ var colorModers = {
};
proto.updateColorModer = function() {
- this.colorModer = colorModers[ this.options.mode ] || colorModers.hsl;
+ this.colorModer = colorModers[ this.options.notation ] || colorModers.shortHex;
};
proto.renderColors = function() {
View
@@ -51,7 +51,7 @@
<p>
<input class="color-input1" />
- <input class="color-input2" value="#00F" />
+ <input class="color-input2" value="#0000FF" />
</p>
<p>
@@ -97,6 +97,7 @@
saturations: 1,
setBGColor: true,
className: 'huebee2',
+ notation: 'hex',
})
new Huebee( document.querySelector('.color-button1'), {

0 comments on commit ab622f4

Please sign in to comment.