Cleanup
This commit is contained in:
+3
-2
@@ -253,9 +253,10 @@ thickLine t = pictures . f
|
||||
where
|
||||
f (x:y:ys)
|
||||
| x == y = f (x:ys)
|
||||
| otherwise = polygon [x +.+ n x y, x -.- n x y, y -.- n x y, y +.+ n x y] : f (y:ys)
|
||||
| otherwise = polygon [x +.+ n, x -.- n, y -.- n, y +.+ n] : f (y:ys)
|
||||
where
|
||||
n = (t*0.5) *.* errorNormalizeV 42 (vNormal (x -.- y))
|
||||
f _ = []
|
||||
n a b = (t*0.5) *.* errorNormalizeV 42 (vNormal (a -.- b))
|
||||
|
||||
thickLineCol :: Float -> [(Point2,RGBA)] -> Picture
|
||||
{-# INLINE thickLineCol #-}
|
||||
|
||||
Reference in New Issue
Block a user