整理代码,texture模块的新画布函数的画布底色改成透明白色
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
local function NSC(x,y)-- New & Set Canvas
|
local function NSC(x,y)-- New & Set Canvas
|
||||||
local _=GC.newCanvas(x,y)
|
local c=GC.newCanvas(x,y)
|
||||||
GC.setCanvas(_)
|
GC.setCanvas(c)
|
||||||
return _
|
GC.clear(1,1,1,0)
|
||||||
|
return c
|
||||||
end
|
end
|
||||||
local TEXTURE={}
|
local TEXTURE={}
|
||||||
|
|
||||||
@@ -112,7 +113,6 @@ end
|
|||||||
|
|
||||||
TEXTURE.spiderweb=NSC(60,60)
|
TEXTURE.spiderweb=NSC(60,60)
|
||||||
do
|
do
|
||||||
GC.clear(1,1,1,0)
|
|
||||||
GC.setLineWidth(1)
|
GC.setLineWidth(1)
|
||||||
GC.push('transform')
|
GC.push('transform')
|
||||||
GC.translate(30,30)
|
GC.translate(30,30)
|
||||||
|
|||||||
Reference in New Issue
Block a user