Resplit Picture

This commit is contained in:
2022-07-01 20:15:04 +01:00
parent e0b63468fc
commit e9e72594c0
3 changed files with 395 additions and 366 deletions
+16
View File
@@ -0,0 +1,16 @@
module Picture.Composite where
import Picture.Data
import Picture.Base
import Geometry
--import Color
arrowPath :: [Point2] -> Picture
arrowPath xs = mconcat $ zipWith arrow xs $ tail xs
arrow :: Point2 -> Point2 -> Picture
arrow a b = line [a,b]
<> line [b +.+ n -.- v,b]
<> line [b -.- n -.- v,b]
where
v = 5 *.* normalizeV (b -.- a)
n = vNormal v