michaelfox + color 38
Colors: JS Color Library :: Matthew B. Jordan
january 2012 by michaelfox
The goal of Colors is to have an easy to use color manipulation library that is lightweight and very functional. I have plans for adding more functions in the future. Check out the to do list and let me know what you think.
Colors can do the following:
Change RGB to a Hexadecimal color.
Change Hexadecimal to an RGB color.
Change Hexadecimal to an HSV color.
Get the complementary value of a Hexadecimal color.
Get the complementary value of an RGB color.
Named color to an RGB object, HSV object or Hexadecimal string.
Get a random color in RGB or Hexadecimal.
color
library
javascript
Colors can do the following:
Change RGB to a Hexadecimal color.
Change Hexadecimal to an RGB color.
Change Hexadecimal to an HSV color.
Get the complementary value of a Hexadecimal color.
Get the complementary value of an RGB color.
Named color to an RGB object, HSV object or Hexadecimal string.
Get a random color in RGB or Hexadecimal.
january 2012 by michaelfox
Solarized - Ethan Schoonover
april 2011 by michaelfox
Solarized is a sixteen color palette (eight monotones, eight accent colors) designed for use with terminal and gui applications. It has several unique properties. I designed this colorscheme with both precise CIELAB lightness relationships and a refined set of hues based on fixed color wheel relationships. It has been tested extensively in real world use on color calibrated displays (as well as uncalibrated/intentionally miscalibrated displays) and in a variety of lighting conditions
color
terminal
theme
vim
april 2011 by michaelfox
gist: 270742 - GitHub Attempt to make a drop-and-forget bunch of scripts that mimick some missing html5 goodies automatically
october 2010 by michaelfox
var ProvideHtml5 = {
autofocus : function() {
if (!Modernizr.autofocus)
$('input[autofocus=""]').focus();
},
colorpicker : function() {
if (!Modernizr.inputtypes.color)
$('input[type=color]').ColorPicker({
onSubmit: function(hsb, hex, rgb, el) {
$(el).val(hex);
$(el).ColorPickerHide();
},
onBeforeShow: function () {
$(this).ColorPickerSetColor(this.value);
},
onChange: function (hsb, hex, rgb, el) {
$('input[type=color]').val('#'+hex);
}
}).bind('keyup', function(){
$(this).ColorPickerSetColor(this.value);
});
},
datepicker : function() {
var datetypes = 'date month week time datetime datetime-local'.split(/ /)
$(datetypes).each(function(i, type) {
if (!Modernizr.inputtypes[type])
$('input[type='+type+']').datepicker()
})
},
forcenumber : function() {
if (!Modernizr.inputtypes.number)
$('input[type=number]').forcenumber();
},
placeholder : function() {
if (!Modernizr.input.placeholder)
$('input[placeholder]').placeholder();
},
all : function() {
for (f in this)
if (f != 'all')
this[f]()
}
};
$.fn.placeholder = function() {
return $(this)
.each(function(){
$(this).data('default', $(this).attr('placeholder'));
})
.focus(function(){
($(this).val()===$(this).data('default')) && $(this).val('');
})
.blur(function(){
($(this).val()==='') && $(this).val($(this).data('default'));
}).blur();
}
$.fn.forcenumber = function() {
return $(this).unbind().keyup(function(e) {
var val = $(this).val(),
num = parseFloat(val),
min = parseFloat($(this).attr('min')),
max = parseFloat($(this).attr('max'));
if ( ! val.match(/^(\d|-)?(\d|,)*\.?\d*$/) )
return $(this).val(val.match(/((\d|-)?(\d|,)*\.?\d*)/)[0])
if (min && num < min)
return $(this).val(min)
if (max && num > max)
return $(this).val(max)
});
}
javascript
modernizr
html5
jquery
shim
placeholder
autofocus
date
color
number
gist-270742
gist
autofocus : function() {
if (!Modernizr.autofocus)
$('input[autofocus=""]').focus();
},
colorpicker : function() {
if (!Modernizr.inputtypes.color)
$('input[type=color]').ColorPicker({
onSubmit: function(hsb, hex, rgb, el) {
$(el).val(hex);
$(el).ColorPickerHide();
},
onBeforeShow: function () {
$(this).ColorPickerSetColor(this.value);
},
onChange: function (hsb, hex, rgb, el) {
$('input[type=color]').val('#'+hex);
}
}).bind('keyup', function(){
$(this).ColorPickerSetColor(this.value);
});
},
datepicker : function() {
var datetypes = 'date month week time datetime datetime-local'.split(/ /)
$(datetypes).each(function(i, type) {
if (!Modernizr.inputtypes[type])
$('input[type='+type+']').datepicker()
})
},
forcenumber : function() {
if (!Modernizr.inputtypes.number)
$('input[type=number]').forcenumber();
},
placeholder : function() {
if (!Modernizr.input.placeholder)
$('input[placeholder]').placeholder();
},
all : function() {
for (f in this)
if (f != 'all')
this[f]()
}
};
$.fn.placeholder = function() {
return $(this)
.each(function(){
$(this).data('default', $(this).attr('placeholder'));
})
.focus(function(){
($(this).val()===$(this).data('default')) && $(this).val('');
})
.blur(function(){
($(this).val()==='') && $(this).val($(this).data('default'));
}).blur();
}
$.fn.forcenumber = function() {
return $(this).unbind().keyup(function(e) {
var val = $(this).val(),
num = parseFloat(val),
min = parseFloat($(this).attr('min')),
max = parseFloat($(this).attr('max'));
if ( ! val.match(/^(\d|-)?(\d|,)*\.?\d*$/) )
return $(this).val(val.match(/((\d|-)?(\d|,)*\.?\d*)/)[0])
if (min && num < min)
return $(this).val(min)
if (max && num > max)
return $(this).val(max)
});
}
october 2010 by michaelfox
ColorSchemer - Online Color Scheme Generator
july 2009 by michaelfox
Generate matching color schemes like never before!
design
tools
color
css
web
july 2009 by michaelfox
related tags
accessibility ⊕ adobe ⊕ air ⊕ app ⊕ applescript ⊕ apps ⊕ art ⊕ autofocus ⊕ background ⊕ bash ⊕ bestpractices ⊕ blacktext ⊕ cli ⊕ collection ⊕ color ⊖ colorblind ⊕ colorpicker ⊕ colors ⊕ colorscheme ⊕ colortheory ⊕ css ⊕ css3 ⊕ customization ⊕ date ⊕ design ⊕ domain ⊕ dotfiles ⊕ editor ⊕ email ⊕ favicon ⊕ font ⊕ forms ⊕ generator ⊕ gist ⊕ gist-270742 ⊕ gradients ⊕ graphics ⊕ HCI ⊕ howto ⊕ htaccess ⊕ html5 ⊕ image ⊕ iterm ⊕ javascript ⊕ jquery ⊕ kuler ⊕ library ⊕ list ⊕ mac ⊕ metatag ⊕ modernizr ⊕ mysql ⊕ number ⊕ osx ⊕ password ⊕ patterns ⊕ photoshop ⊕ php ⊕ placeholder ⊕ presentation ⊕ preview ⊕ research ⊕ resources ⊕ rgba ⊕ robot ⊕ scripting ⊕ shell ⊕ shim ⊕ sitemap ⊕ ssh ⊕ stockphoto ⊕ style ⊕ sysadmin ⊕ terminal ⊕ text ⊕ theme ⊕ themes ⊕ theory ⊕ tools ⊕ tooltips ⊕ transparency ⊕ typography ⊕ usability ⊕ utilities ⊕ ux ⊕ vim ⊕ web ⊕ web2.0 ⊕ webdev ⊕ wishlist ⊕ xml ⊕ zsh ⊕Copy this bookmark: