2var Color = function() {
4 var create = function(r,g,b,a) {
11 var extract = function(c) {
13 return 'rgb(' + c.r + ',' + c.g + ',' + c.b + ')';
15 return 'rgba(' + c.r + ',' + c.g + ',' + c.b + ',' + c.a + ')';
18 var rgba = function(r) { return function(g) { return function(b) {
19 return function(a) { return create(r,g,b,a); }; }; };
22 var rgb = function(r) { return function(g) { return function(b) {
23 return create(r,g,b,1); }; };
25 return {black: create( 0, 0, 0,1),
26 white: create(255,255,255,1),
27 red : create(255, 0, 0,1),
28 green: create( 0,255, 0,1),
29 blue : create( 0, 0,255,1),
31 gray : create(128,128,128,1),
32 grey : create(128,128,128,1),
34 yellow : create(255,255, 0,1),
35 cyan : create( 0,255,255,1),
36 magenta : create(255, 0,255,1),
40 Internal : { extract:extract }
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list