Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Lua 如何使用透明内部背景的拉环(corona sdk)_Lua_Coronasdk - Fatal编程技术网

Lua 如何使用透明内部背景的拉环(corona sdk)

Lua 如何使用透明内部背景的拉环(corona sdk),lua,coronasdk,Lua,Coronasdk,如何绘制内部背景透明的圆环(corona sdk)。dipslay.newCircle将只绘制一个圆,而不绘制戒指。试试这个 local circle = display.newCircle (100,100,200) circle:setFillColor(0,0,0,0) --This will set the fill color to transparent circle.strokeWidth = 3 --This is the width of the outline of the

如何绘制内部背景透明的圆环(corona sdk)。dipslay.newCircle将只绘制一个圆,而不绘制戒指。

试试这个

local circle = display.newCircle (100,100,200)
circle:setFillColor(0,0,0,0) --This will set the fill color to transparent
circle.strokeWidth = 3 --This is the width of the outline of the circle
circle:setStrokeColor(255,0,0) --This is the color of the outline

在较新版本的Corona SDK中,用于此目的的API已经更改。参观