santBart
santBart

Reputation: 2496

canvas draw circle

I wish to draw circle but when I fill() my arc all other shapes which are under "circle" and arent't fullfilled fill() with the same color as arc. Can anyone help me to solve it?

Upvotes: 1

Views: 617

Answers (2)

Jörn Berkefeld
Jörn Berkefeld

Reputation: 2579

... and closePath() after being done with the previous shapes

Upvotes: 0

Jukka K. Korpela
Jukka K. Korpela

Reputation: 201518

Call beginPath() before starting to draw the circle.

Upvotes: 1

Related Questions