Cleanup pictures

This commit is contained in:
2023-01-11 11:26:26 +00:00
parent 68338d223b
commit af24c5bc9c
2 changed files with 17 additions and 68 deletions
+4 -1
View File
@@ -1,4 +1,6 @@
module Picture.Arc where
module Picture.Arc
( arcFull
) where
import Color
import Geometry
@@ -7,6 +9,7 @@ import Picture.Data
-- this should work regardless of which angle is larger, though swapping the
-- angles will affect the winding of the drawn triangles
arcFull :: Float -> Float -> Color -> Float -> Float -> Color -> Float -> Color -> Picture
{-# INLINE arcFull #-}
arcFull startA swidth scol endA ewidth ecol r centercol
| abs (difference startA endA) > pi / 2 =
arcFull startA swidth scol midA mw mc r centercol