Partially working ellipse shader
This commit is contained in:
@@ -10,6 +10,7 @@ module Picture
|
||||
, thickCircle
|
||||
, circleSolid
|
||||
, circle
|
||||
, ellipseSolid
|
||||
, line
|
||||
, lineCol
|
||||
, text
|
||||
@@ -118,6 +119,10 @@ makeArc rad (a,b) = zipWith rotateV as $ repeat (0,rad)
|
||||
where as = [a,a+step.. b]
|
||||
step = pi * 0.2
|
||||
|
||||
ellipseSolid :: Point2 -> Point2 -> Float -> Picture
|
||||
{-# INLINE ellipseSolid #-}
|
||||
ellipseSolid = Ellipse 0
|
||||
|
||||
circleSolid :: Float -> Picture
|
||||
{-# INLINE circleSolid #-}
|
||||
--circleSolid rad = polygon $ makeArc rad (0,2*pi)
|
||||
|
||||
Reference in New Issue
Block a user