Separate and reify laser beams
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
module Dodge.Laser.Draw
|
||||
where
|
||||
import Dodge.Data.Laser
|
||||
import Picture
|
||||
|
||||
--drawLaser :: Particle -> Picture
|
||||
----drawLaser pt = setLayer BloomNoZWrite $ pictures
|
||||
-- --[ setDepth 19 . color (brightX 0 0.5 col) $ thickLine 20 ps
|
||||
--drawLaser pt =
|
||||
-- setLayer BloomNoZWrite $ pictures
|
||||
---- [ setDepth 19 . color (brightX 1 0.5 col) $ thickLine 20 ps
|
||||
-- [ setDepth 19.5 . color (brightX 10 1 col) $ thickLine 3 ps
|
||||
-- ]
|
||||
-- where
|
||||
-- col = _ptColor pt
|
||||
-- ps = _ptPoints pt
|
||||
|
||||
|
||||
drawLaser :: Laser -> Picture
|
||||
drawLaser pt =
|
||||
setLayer BloomNoZWrite $ pictures
|
||||
[ setDepth 19.5 . color (brightX 10 1 col) $ thickLine 3 ps
|
||||
]
|
||||
where
|
||||
col = _laColor pt
|
||||
ps = _laPoints pt
|
||||
Reference in New Issue
Block a user