diff options
author | emile <hanemile@protonmail.com> | 2018-10-08 16:55:15 +0200 |
---|---|---|
committer | emile <hanemile@protonmail.com> | 2018-10-08 16:55:15 +0200 |
commit | 244477770aa7a97f2dbdd113133defdb299a6013 (patch) | |
tree | 2df41d0e2a09534b5107e54eb862eaa63fc64edd /draw | |
parent | 24c0e5c0101387b3e5f4d6cf1ebabb53eb8592e0 (diff) |
Use CamelCase and not snake_case
Diffstat (limited to 'draw')
-rw-r--r-- | draw/draw.go | 8 |
1 files 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 } |