How to draw a solid circle with cocos2d for iPhone

后端 未结 6 1780
遇见更好的自我
遇见更好的自我 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:33

    Look into:

    • CGContextAddArc
    • CGContextFillPath

    These will allow you to fill a circle without needing OpenGL

提交回复
热议问题