From 0a17df91fc4545617ecd0785db82cde14da5a9dc Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 21 Aug 2018 10:07:23 -0400 Subject: Added Image and renamed the BrushType constants respectively. --- zz_histogram.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zz_histogram.go') 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 -- cgit v1.2.3