From 244477770aa7a97f2dbdd113133defdb299a6013 Mon Sep 17 00:00:00 2001 From: emile Date: Mon, 8 Oct 2018 16:55:15 +0200 Subject: Use CamelCase and not snake_case --- draw/draw.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/draw/draw.go b/draw/draw.go index 92c577b..b8d552a 100644 --- a/draw/draw.go +++ b/draw/draw.go @@ -9,11 +9,11 @@ import ( // initializePlot generates a new plot and returns the plot context func initializePlot() *gg.Context { // Define the image size - const image_width = 8192 - const image_height = 8192 + const imageWidth = 8192 + const imageHeight = 8192 // Initialize the new context - dc := gg.NewContext(image_width, image_height) + dc := gg.NewContext(imageWidth, imageHeight) // Set the background black dc.SetRGB(0, 0, 0) @@ -23,7 +23,7 @@ func initializePlot() *gg.Context { dc.InvertY() // Set the coordinate midpoint to the middle of the image - dc.Translate(image_width/2, image_height/2) + dc.Translate(imageWidth/2, imageHeight/2) return dc } -- cgit 1.4.1