diff options
| author | Will Eccles <[email protected]> | 2019-04-04 12:28:34 -0400 |
|---|---|---|
| committer | Will Eccles <[email protected]> | 2019-04-04 12:28:34 -0400 |
| commit | 87b1d2ba3bfa3e7b5478b360130c424fef52bfbf (patch) | |
| tree | f7309607538455ef8bab7ee9777faa3574448df2 /output.go | |
| parent | Removed abort on less than 16 colors generated (diff) | |
| download | schemer2-87b1d2ba3bfa3e7b5478b360130c424fef52bfbf.tar.xz schemer2-87b1d2ba3bfa3e7b5478b360130c424fef52bfbf.zip | |
Added support for kitty, both input and output
Diffstat (limited to 'output.go')
| -rw-r--r-- | output.go | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -268,3 +268,18 @@ func printGnomeDConf(colors []color.Color) string { output += "\n" return output } + +func printKittyTerm(colors []color.Color) string { + output := "" + for i, c := range colors { + cc := c.(color.NRGBA) + bytes := []byte{byte(cc.R), byte(cc.G), byte(cc.B)} + output += "color" + output += strconv.Itoa(i) + output += "\t#" + output += hex.EncodeToString(bytes) + output += "\n" + } + + return output +} |