michaelfox + color   38

Colors: JS Color Library :: Matthew B. Jordan
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 
january 2012 by michaelfox
Solarized - Ethan Schoonover
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
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 
october 2010 by michaelfox
ColorSchemer - Online Color Scheme Generator
Generate matching color schemes like never before!
design  tools  color  css  web 
july 2009 by michaelfox

Copy this bookmark:



description:


tags: