Lua 如何在corona SDK的display.newCircle()中添加图像
我想用自定义图像更改圆的颜色。有可能吗?是的,有可能。试一试Lua 如何在corona SDK的display.newCircle()中添加图像,lua,coronasdk,Lua,Coronasdk,我想用自定义图像更改圆的颜色。有可能吗?是的,有可能。试一试 -- Create a vector rectangle local circle = display.newCircle( 200, 200, 300 ) -- Set the fill (paint) to use the bitmap image local paint = { type = "image", filename = "texture1.png" } -- Fill the circle cir
-- Create a vector rectangle
local circle = display.newCircle( 200, 200, 300 )
-- Set the fill (paint) to use the bitmap image
local paint = {
type = "image",
filename = "texture1.png"
}
-- Fill the circle
circle.fill = paint
您可以在中找到更多信息