This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"net/url" | |
"os" | |
"reflect" | |
"regexp" | |
"strconv" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"net" | |
"net/http" | |
"os" | |
"os/exec" | |
"os/signal" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MIN_L = 40, // Don't generate too dark colors. | |
MAX_L = 85, // Don't generate too light colors. | |
index, | |
length, | |
offset, | |
emptySlots; | |
// Make a list of base colors. Start with blue if nothing is defined. | |
var baseColors = BASE_COLORS.length ? BASE_COLORS : ["RoyalBlue"]; | |
emptySlots = FINAL_PALETTE_SIZE - baseColors.length - 2; // 2 gray values. |