Difference between revisions of "Talk:love.graphics.circle"

(Created page with "Table input: Is it possible to add the table input like: <source lang="lua"> function love.draw() love.graphics.setColor(1, 1, 1) local circle1 = {"fill", 300, 300, 50, 100...")
 
 
Line 12: Line 12:
 
end
 
end
 
</source>
 
</source>
 +
--[[User:Darkfrei|Darkfrei]] ([[User talk:Darkfrei|talk]]) 15:49, 27 March 2021 (UTC)

Latest revision as of 15:49, 27 March 2021

Table input:

Is it possible to add the table input like:

function love.draw()
	love.graphics.setColor(1, 1, 1)
	local circle1 = {"fill", 300, 300, 50, 100}
	love.graphics.circle(circle1) -- Draw white circle with 100 segments.
	love.graphics.setColor(1, 0, 0)
	local circle2 = {mode="fill", x=300, y=50, radius=50, segments=5}
	love.graphics.circle(circle2)   -- Draw red circle with five segments.
end

--Darkfrei (talk) 15:49, 27 March 2021 (UTC)