Add visuals for wrist equipment
This commit is contained in:
@@ -39,6 +39,8 @@ module Picture
|
||||
, setDepth
|
||||
, addDepth
|
||||
, setLayer
|
||||
, mirroryz
|
||||
, mirrorxz
|
||||
)
|
||||
where
|
||||
import Geometry
|
||||
@@ -358,3 +360,13 @@ charToTuple x c =
|
||||
]
|
||||
where
|
||||
offset = fromIntegral (fromEnum c) - 32
|
||||
|
||||
mirrorxz :: Picture -> Picture
|
||||
mirrorxz = map (overPos flipy)
|
||||
where
|
||||
flipy (V3 x y z) = V3 x (negate y) z
|
||||
|
||||
mirroryz :: Picture -> Picture
|
||||
mirroryz = map (overPos flipx)
|
||||
where
|
||||
flipx (V3 x y z) = V3 (negate x) y z
|
||||
|
||||
Reference in New Issue
Block a user