View
Theme
Font Style
7pt
8pt
9pt
10pt
11pt
Line Style
100%
110%
120%
130%
140%
Bold Keyword
Default
Inspector
Kkaefer
Eclipse
SQ Light
Lesser
Dark
Cobalt
Monokai
Rubyblue
Night
SQ Dark
Ambiance
Blackboard
Line Num.
Wrap Lines
Preview
Redraw
JS Tab
HTML Tab
CSS Tab
Live Tab
Prev. Tab
Next Tab
Browser
History…
Help
Edit
Settings
Auto Complete
Match Brackets
Match Highlight
Strip Whitespace
Auto Close Brackets
Auto Close Quotes
Show Print Margin
Undo
Redo
Delete
Select Line
Select All
Find & Replace
Find
Find in Repo.
Find Next
Find Previous
Replace Single
Replace All
Wrap Search
Revert
As Template
Diff Revision
Format
Compress
Text
Zen Coding
Indent
Tab Width
1
2
3
4
5
6
7
8
Indent Unit
1
2
3
4
5
6
7
8
Smart Indent
Use Tabs
Visible Tabs
Shift Left
Shift Right
Put Indent
Number
Increment by 1
Decrement by 1
Increment by 0.1
Decrement by 0.1
Increment by 10
Decrement by 10
Simple Math
Comment
Line
Move Up
Move Down
Copy Up
Copy Down
Go to Line…
Remove Line
Next Point
Prev. Point
Help
Share
Login
You can jump to the latest bin by adding
/latest
to your URL
×
z
Find
→
←
⟲
Replace
⊗
All
Replace
/* IE patch. :( */ if(typeof String.prototype.trim !== 'function') { String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); } } /***/ function assure_hash_prefix(s) { if(s[0] == '#' || !(/^[\dabcdef]{3,6}$/).test(s)) return s; return '#' + s; } function hex_to_rgb(hex) { /* "FFFFFF" -> [255,255,255] */ if(hex[0] == '#') { hex = hex.substring(1,7); } return [parseInt(hex.substring (0, 2), 16), parseInt(hex.substring(2, 4), 16), parseInt(hex.substring(4, 6), 16)] } function rgb_to_hex(rgb) { /* [255,255,255] -> "FFFFFF" */ var r = (rgb[2] | (rgb[1] << 8) | (rgb[0] << 16)).toString(16); // Pad 0's for(var i=0, stop=6-r.length; i
[255,255,255] */ if(s[0] == '#') return hex_to_rgb(s); // NOTE: IE8 does not always return rgb return $.map(s.substring(4,s.length-1).split(','), function(o) { return parseInt(o.trim()) }); } function rgb_to_css(rgb) { /* [255,255,255] -> "rgb(255, 255, 255)" */ return 'rgb(' + rgb[0] + ',' + rgb[1] +',' + rgb[2] + ')'; } function apply_filter(c1, c2, fn) { return [fn(c1[0], c2[0]), fn(c1[1], c2[1]), fn(c1[2], c2[2])] } var blend_filters = { multiply: function(bg, fg) { return (fg*bg)/255; }, screen: function(bg, fg) { return 255 - (((255-fg)*(255-bg)) >> 8); }, overlay: function(bg, fg) { return (bg < 128) ? (2 * fg * bg / 255) : (255 - 2 * (255 - bg) * (255 - fg) / 255); }, dodge: function(bg, fg) { return bg == 255 ? bg : Math.min(255, (fg << 8) / (255 - bg)); }, burn: function(bg, fg) { return bg == 0 ? bg : Math.max(0, (255 - ((255-fg) << 8) / bg)); }, negate: function(bg, fg) { return 255 - Math.abs(255 - bg - fg); } } function blend(filter, c1, c2) { var c = apply_filter(c1, c2, blend_filters[filter]) return [Math.min(Math.round(c[0]), 255), Math.min(Math.round(c[1]), 255), Math.min(Math.round(c[2]), 255)]; } function render_blend() { var blend_mode = $("#blend-mode li.active").text().toLowerCase(); try { $("#color-bottom-preview").css('background-color', assure_hash_prefix($("#color-bottom").val())); $("#color-top-preview").css('background-color', assure_hash_prefix($("#color-top").val())); var c1 = css_to_rgb($("#color-bottom-preview").css('background-color')); var c2 = css_to_rgb($("#color-top-preview").css('background-color')); var blended = blend(blend_mode, c1, c2); $("#color-blended-preview").css('background-color', rgb_to_css(blended)); $("#color-blended").val("#" + rgb_to_hex(blended)); } catch(err) { alert("Unsupported color format."); } } $(document).ready(function() { var active = $("#blend-mode li.active"); $("#blend-mode li").click(function(e) { if(active) $(active).removeClass('active'); active = $(this).addClass('active'); render_blend(); }); $(document).keydown(function(e) { if(e.which == 38 || e.which == 75) { // Down $(active).prev().click(); } else if(e.which == 40 || e.which == 74) { // Up $(active).next().click(); } }); });
ColorBlendy - Blend colors with different modes like multiply, overlay, dodge.
ColorBlendy
Multiply
Screen
Overlay
Dodge
Burn
html { background-color:#000; } body { font-family:"Lucida Grande", Arial, Helvetica, sans-serif; padding: 25px 0 0 0; margin: 0; height: 100%; min-width: 760px; } h1 { font-weight:normal; color:#fff; font-size:0.9em; color: #444b52; line-height:50px; height:50px; margin:0; float:right; width:50%; text-transform:uppercase; letter-spacing:0.2em; } select, input { font-size: 20px; width: 200px; text-align: center; margin-top:30px; padding:0.5em 0.2em; color:#888; border:0; outline:10px solid rgba(0,0,0,0.1); } input { font-family:monospace; } select { padding:0; height:185px; width:215px; margin-top:105px; overflow: hidden; } select option { padding:0.3em 0; } #color-bottom-preview { float: left; width: 66.6%; height: 100%; background: #abc; -webkit-border-top-right-radius: 20px; -webkit-border-bottom-right-radius: 20px; -moz-border-radius-topright: 20px; -moz-border-radius-bottomright: 20px; border-top-right-radius: 20px; border-bottom-right-radius: 20px; } #color-top-preview { float: left; width: 33.3%; height: 82%; margin: 50px 0 0 0; background: #333; } #color-blended-preview { float: right; width: 50%; min-width: 200px; height: 82%; margin: 0 0 0 0; background: #222529; -webkit-border-top-left-radius: 20px; -webkit-border-bottom-left-radius: 20px; -moz-border-radius-topleft: 20px; -moz-border-radius-bottomleft: 20px; border-top-left-radius: 20px; border-bottom-left-radius: 20px; } #color-blended-preview ul { width:226px; margin:150px auto 0 auto; background-color:rgba(255,255,255,0.1); list-style-type:none; padding:0; color:rgba(0,0,0,0.8); } #color-blended-preview ul li { padding:0.5em 0; text-transform:uppercase; letter-spacing:0.1em; cursor:pointer; font-size:0.9em; } #color-blended-preview ul li.active, #color-blended-preview ul li:hover { background-color:rgba(255,255,255,0.5); } #footer { text-align: center; font-size: 10px; line-height: 50px; height: 50px; color: #444; } #footer a { color: #666; text-decoration: none; }
Pop out
Help
About
×
×