Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhuzaima committed Dec 14, 2024
1 parent bcbf03f commit 4a7815d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stl/geometry/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ type imageRenderConfig struct {
}

const (
imagePosition = 0.025
textPadding = 0.1 // 10%
imagePosition = 0.025
textPadding = 0.1 // 10%

defaultContextWidth = 800
defaultContextHeight = 200
Expand Down Expand Up @@ -84,7 +84,7 @@ func Create3DText(username string, year string, innerWidth, baseHeight float64)

yearConfig := textRenderConfig{
renderConfig: renderConfig{
startX: innerWidth * (1-textPadding) - 75 ,
startX: innerWidth*(1-textPadding) - 75,
startY: -textDepthOffset / 2,
startZ: baseHeight * yearZOffset,
voxelScale: textVoxelSize * 0.75,
Expand Down

0 comments on commit 4a7815d

Please sign in to comment.