Configurable palette

This commit is contained in:
David Högborg
2020-07-18 19:50:26 +02:00
parent 1ef3625c99
commit c30e2324b6
4 changed files with 77 additions and 45 deletions

View File

@@ -10,7 +10,6 @@ import (
)
func main() {
app := cli.NewApp()
app.Name = "RTL GoPow"
app.Usage = "Render a rtl_power CSV output as waterfall image"
@@ -19,7 +18,6 @@ func main() {
app.Email = "d@hogborg.se"
app.Action = func(c *cli.Context) {
if c.Bool("verbose") == true {
log.SetLevel(log.DebugLevel)
} else {
@@ -49,7 +47,6 @@ func main() {
}).Fatal("write failed")
return
}
}
app.Flags = []cli.Flag{
@@ -86,6 +83,11 @@ func main() {
Name: "no-annotations",
Usage: "Disabled annotations such as time and frequency scales",
},
cli.StringFlag{
Name: "palette",
Usage: "Select the palette for output image. [spectrum,yellow]",
Value: "spectrum",
},
}
app.Run(os.Args)