Color scroll lines in inventory display
This commit is contained in:
@@ -45,6 +45,7 @@ module Picture.Base (
|
||||
mirrorxz,
|
||||
overPos,
|
||||
picMap,
|
||||
vMirrorText,
|
||||
) where
|
||||
|
||||
import Color
|
||||
@@ -205,6 +206,10 @@ text :: String -> Picture
|
||||
text = drawText 0
|
||||
--text = drawText (-10)
|
||||
|
||||
vMirrorText :: String -> Picture
|
||||
{-# INLINE vMirrorText #-}
|
||||
vMirrorText = translate 0 200 . scale 1 (-1) . text
|
||||
|
||||
drawText :: Float -> String -> [Verx]
|
||||
{-# INLINE drawText #-}
|
||||
drawText gap = map f . stringToList gap
|
||||
|
||||
Reference in New Issue
Block a user