Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Another way to a draw a circle on Gideros — Gideros Forum

Another way to a draw a circle on Gideros

hgy29hgy29 Maintainer
It just occured to me that there is a nice and very fast way to draw filled circles in Gideros, and very accurate ones. The trick is to use Particles, which has a specific shader for circles. Exemple for two concentric circles (to simulate an outline):
	local mkr=Particles.new()
	mkr:addParticles{
		{x=0,y=0,size=100,color=0xFFFFFF},
		{x=0,y=0,size=70,color=0x4071B5},
	}
	self:addChild(mkr) mkr:setPosition(120,120)
+1 -1 (+4 / -0 )Share on Facebook
Sign In or Register to comment.