Drawing circles filled with 4 colors

Forum for the book "Beginning Android Games", see http://www.apress.com/9781430230427

Drawing circles filled with 4 colors

Postby Dahn » Mon Jul 04, 2016 8:00 am

Hi there community,

I've been trying to draw a segmented circle filled with different colors, something like this:

Image

Is there any easier way to do it better than using maths or an image? how would you do it?

Thank you very much!
Dahn
 
Posts: 1
Joined: Mon Jul 04, 2016 7:55 am

Re: Drawing circles filled with 4 colors

Postby Magnesus » Mon Jul 04, 2016 11:17 am

I would just use high-res image, unless they need to be animated in some weird way (rotating is easy, changing the color ratios is hard).
Magnesus
 
Posts: 1536
Joined: Sun Sep 25, 2011 3:50 pm

Re: Drawing circles filled with 4 colors

Postby David_Ferraro » Sun Aug 14, 2016 12:15 pm

Do it need change the color ratios? Or it fixed?
David_Ferraro
 
Posts: 2
Joined: Sun Aug 14, 2016 12:05 pm

Re: Drawing circles filled with 4 colors

Postby jennyhannb » Fri Aug 11, 2017 7:36 am

I only draw a three-color circle
jennyhannb
 
Posts: 1
Joined: Fri Aug 11, 2017 7:27 am


Return to Beginning Android Games

Who is online

Users browsing this forum: No registered users and 2 guests