How to draw an effect (Gloss with metallic lustre) on concentric circle such as following?

699 views Asked by At

I referred to following article. What I actually need to draw is concentric/ Concrete circles with an effect as shown in image below.

enter image description here

I am finding it difficult to a) Draw the white streaks radially b) Find some key terms to search for related articles to proceed further on this.

Any hint or link to read about this will be of great help.

3

There are 3 answers

0
amergin On BEST ANSWER

I don't have any code for you but the idea is actually quite simple. You're drawing a number of lines radiating from a single, central point (say 50,50) to four different sets of points. First set is for x = 0 to 100, y = 0. Second set is for y = 0 to 100, x = 0. Third set is for x = 0 to 100, y = 100. Fourth set is for y = 0 to 100, x = 100. And for each step you need to either change the colour from white to black or white to grey in increments or use a look up table with your colour values in it.

1
Rahul Vyas On
2
prouvaire On

http://maniacdev.com/2012/06/ios-source-code-example-making-reflective-metallic-buttons-like-the-music-app

This is a tutorial on making reflective metal buttons. You can apply the techniques from the source code to whatever object you're trying to make. The source code is found here on github. I just googled "ios objective c metal effect" because that's what you're trying to do, right? The metal effect appears in concentric circles and changes as you tilt your phone, just as the iOS6 music slider does.