summaryrefslogtreecommitdiff
path: root/zz_histogram.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2018-08-21 10:07:23 -0400
committerPietro Gagliardi <[email protected]>2018-08-21 10:07:23 -0400
commit0a17df91fc4545617ecd0785db82cde14da5a9dc (patch)
treef07dab31b382935e8db92a6aa33fbd36de1f522b /zz_histogram.go
parent3983f630480c2e5fb4dd9941b1df3e7750b6e504 (diff)
Added Image and renamed the BrushType constants respectively.
Diffstat (limited to 'zz_histogram.go')
-rw-r--r--zz_histogram.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/zz_histogram.go b/zz_histogram.go
index 3c98528..fae5aae 100644
--- a/zz_histogram.go
+++ b/zz_histogram.go
@@ -31,7 +31,7 @@ const (
// helper to quickly set a brush color
func mkSolidBrush(color uint32, alpha float64) *ui.Brush {
brush := new(ui.Brush)
- brush.Type = ui.Solid
+ brush.Type = ui.BrushTypeSolid
component := uint8((color >> 16) & 0xFF)
brush.R = float64(component) / 255
component = uint8((color >> 8) & 0xFF)
@@ -125,7 +125,7 @@ func (areaHandler) Draw(a *ui.Area, p *ui.AreaDrawParams) {
// now get the color for the graph itself and set up the brush
graphR, graphG, graphB, graphA := colorButton.Color()
- brush.Type = ui.Solid
+ brush.Type = ui.BrushTypeSolid
brush.R = graphR
brush.G = graphG
brush.B = graphB