DIAGRAM: improve style
This commit is contained in:
parent
e2f1c865f3
commit
ccbe034ef1
@ -117,10 +117,10 @@ convexHullLines = Diag f
|
|||||||
where
|
where
|
||||||
f _ [] = mempty
|
f _ [] = mempty
|
||||||
f p vt
|
f p vt
|
||||||
= (strokeTrail .
|
= (strokeTrail .
|
||||||
fromVertices .
|
fromVertices .
|
||||||
flip (++) [head $ grahamGetCH vtf] .
|
flip (++) [head $ grahamGetCH vtf] .
|
||||||
grahamGetCH $
|
grahamGetCH $
|
||||||
vtf
|
vtf
|
||||||
) # moveTo (head $ grahamGetCH vtf) # lc red
|
) # moveTo (head $ grahamGetCH vtf) # lc red
|
||||||
where
|
where
|
||||||
@ -210,7 +210,7 @@ gifDiag p xs = fmap (\x -> (x, 100)) .
|
|||||||
fmap (\x -> x <> g) .
|
fmap (\x -> x <> g) .
|
||||||
flip (++)
|
flip (++)
|
||||||
[mkDiag (convexHullLines `mappend`
|
[mkDiag (convexHullLines `mappend`
|
||||||
convexHullPoints) p xs] $
|
convexHullPoints) p xs] $
|
||||||
(convexHullLinesInterval p xs)
|
(convexHullLinesInterval p xs)
|
||||||
where
|
where
|
||||||
g = mconcat .
|
g = mconcat .
|
||||||
|
Loading…
Reference in New Issue
Block a user