TEXTURE模块新增一套像素数字

This commit is contained in:
MrZ626
2021-03-04 17:04:26 +08:00
parent 088800c769
commit a3c7a8af26

View File

@@ -57,6 +57,32 @@ gc.setLineWidth(4)
gc.line(0,20,40,20)
gc.line(20,0,20,40)
TEXTURE.pixelNum={}
for i=0,9 do
TEXTURE.pixelNum[i]=C(3,5)
gc.setLineWidth(4)
if i~=1 and i~=4 then
gc.rectangle("fill",0,0,3,1)
end
if i~=0 and i~=1 and i~=7 then
gc.rectangle("fill",0,2,3,1)
end
if i~=1 and i~=4 and i~=7 then
gc.rectangle("fill",0,4,3,1)
end
if i~=1 and i~=2 and i~=3 and i~=7 then
gc.rectangle("fill",0,0,1,3)
end
if i~=1 and i~=3 and i~=4 and i~=5 and i~=7 and i~=9 then
gc.rectangle("fill",0,2,1,3)
end
if i~=5 and i~=6 then
gc.rectangle("fill",2,0,1,3)
end
if i~=2 then
gc.rectangle("fill",2,2,1,3)
end
end
TEXTURE.cursor=C(12,12)
gc.setColor(1,1,1,.7)