Rm useless filterValidCoords, refactor inRange
This commit is contained in:
@@ -9,7 +9,7 @@ import Util
|
||||
-- |Create the Diagram from the VTable.
|
||||
diagFromVTable :: VTable -> Diagram Cairo R2
|
||||
diagFromVTable meshArr
|
||||
= position (zip (map mkPoint . filterValidCoords 0 500 $ meshArr)
|
||||
= position (zip (map mkPoint . filter (inRange 0 500) $ meshArr)
|
||||
(repeat dot)) # moveTo (p2(-250, -250))
|
||||
`atop` square 500 # lwG 0.05 # bg white
|
||||
where dot = (circle 2 :: Diagram Cairo R2) # fc black
|
||||
|
||||
Reference in New Issue
Block a user