How to draw a solid circle with cocos2d for iPhone

后端 未结 6 1982
遇见更好的自我
遇见更好的自我 2021-02-02 15:53

Is it possible to draw a filled circle with cocos2d ? An outlined circle can be done using the drawCircle() function, but is there a way to fill it in a certain color? Perhaps b

6条回答
  •  没有蜡笔的小新
    2021-02-02 16:15

    I used this way below.

    glLineWidth(2);
    for(int i=0;i<50;i++){
      ccDrawCircle( ccp(s.width/2,  s.height/2), i,0, 50, NO);
    }
    

    I made multiple circle with for loop and looks like a filled circle.

提交回复
热议问题