iOS / GLES2: How to achieve Glow Effect

前端 未结 3 778
旧时难觅i
旧时难觅i 2021-01-25 09:09

I have a compass style needle, free to spin.

I need it to glow when it approaches a certain orientation, say 55 degrees.

I want to have NeedleView subclass UI

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-25 09:44

    You could create the glow around the needle's image in Photoshop. Just replace the image in the app at runtime when glow is turned on.

提交回复
热议问题