Files
loop/src/Dodge/Laser/Draw.hs
T
2023-01-05 09:58:41 +00:00

15 lines
300 B
Haskell

module Dodge.Laser.Draw where
import Dodge.Data.Laser
import Picture
drawLaser :: Laser -> Picture
drawLaser pt =
setLayer BloomNoZWrite $
pictures
[ setDepth 19.5 . color (brightX 10 1 col) $ thickLine 3 ps
]
where
col = _lzColor pt
ps = _lzPoints pt