mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-11 16:12:20 +00:00
use & strokeLineCap .~ pure CapSquare
This commit is contained in:
parent
8d3c501655
commit
f5c3c0b9f4
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ data Segment = Segment Point Point
|
|||
animatePart :: Segment -> Animation
|
||||
animatePart (Segment (Point startx starty) (Point endx endy)) = signalA (curveS 2) $ setDuration customDuration $
|
||||
animate $ \t ->
|
||||
partialSvg t $ pathify $ mkLine (startx, starty) (endx, endy)
|
||||
partialSvg t $ pathify (mkLine (startx, starty) (endx, endy) & strokeLineCap .~ (pure CapSquare))
|
||||
|
||||
-- Helper function to create coordinates for a specific line
|
||||
splitSegments :: Segment -> Int -> [Segment]
|
||||
|
|
|
|||
Loading…
Reference in a new issue