Attempt to simplify text positioning
This commit is contained in:
+4
-1
@@ -201,9 +201,12 @@ stackText = mconcat . zipWith (\y s -> translate 0 y $ centerText s) [0, 100 ..]
|
||||
|
||||
text :: String -> Picture
|
||||
{-# INLINE text #-}
|
||||
text = translate (-50) (-100) . drawText (-10)
|
||||
--text = translate (-50) (-100) . drawText (-10)
|
||||
text = drawText 0
|
||||
--text = drawText (-10)
|
||||
|
||||
drawText :: Float -> String -> [Verx]
|
||||
{-# INLINE drawText #-}
|
||||
drawText gap = map f . stringToList gap
|
||||
where
|
||||
f (pos, col, V3 a b c) = Verx pos col [a, b, c, 1] BottomLayer textNum
|
||||
|
||||
Reference in New Issue
Block a user