📜  画圈love2d - Lua 代码示例

📅  最后修改于: 2022-03-11 14:54:53.982000             🧑  作者: Mango

代码示例1
-- DrawMode: "fill" or "line"
love.graphics.circle(DrawMode, x, y, radius, segments)

-- Example
function love.draw()
    love.graphics.setColor(1, 0, 0)
    love.graphics.circle("fill", 300, 300, 50, 5) -- Draw red circle with five segments.
end