Skip to content

Commit 06ab569

Browse files
committed
Use x and y for the ellipse center
1 parent 3d87caa commit 06ab569

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Graphics/Canvas.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ fillPath ctx path = do
175175
--
176176

177177
type Arc =
178-
{ cx :: Number
179-
, cy :: Number
180-
, r :: Number
178+
{ x :: Number
179+
, y :: Number
180+
, r :: Number
181181
, start :: Number
182182
, end :: Number
183183
}
@@ -186,7 +186,7 @@ foreign import arc
186186
"function arc(ctx) {\
187187
\ return function(a) {\
188188
\ return function() {\
189-
\ ctx.arc(a.cx, a.cy, a.r, a.start, a.end);\
189+
\ ctx.arc(a.x, a.y, a.r, a.start, a.end);\
190190
\ return ctx;\
191191
\ };\
192192
\ };\

0 commit comments

Comments
 (0)