Cleanup
This commit is contained in:
@@ -5,16 +5,15 @@ import Geometry
|
||||
import Picture
|
||||
|
||||
drawRadarSweep :: RadarSweep -> Picture
|
||||
drawRadarSweep pt = setLayer DebugLayer $ pictures sweepPics
|
||||
where
|
||||
col = rsObjectColor $ _rsObject pt
|
||||
p = _rsPos pt
|
||||
r = _rsRad pt
|
||||
sweepPics =
|
||||
drawRadarSweep pt = setLayer DebugLayer $ fold
|
||||
[ colHelper 0.1 $ uncurryV translate p $ thickCircle r 15
|
||||
, colHelper 0.06 $ uncurryV translate p $ thickCircle (r -5) 5
|
||||
, colHelper 0.03 $ uncurryV translate p $ thickCircle (r -10) 5
|
||||
]
|
||||
where
|
||||
col = rsObjectColor $ _rsObject pt
|
||||
p = _rsPos pt
|
||||
r = _rsRad pt
|
||||
colHelper y = color (withAlpha (y * globalAlpha) col)
|
||||
globalAlpha
|
||||
| x > 10 = 1
|
||||
|
||||
Reference in New Issue
Block a user