From a3c7a8af2695b2937b1225e62b4a621751df5bd8 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 4 Mar 2021 17:04:26 +0800 Subject: [PATCH] =?UTF-8?q?TEXTURE=E6=A8=A1=E5=9D=97=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=B8=80=E5=A5=97=E5=83=8F=E7=B4=A0=E6=95=B0=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/texture.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/parts/texture.lua b/parts/texture.lua index 466ddd54..3ec4b5d0 100644 --- a/parts/texture.lua +++ b/parts/texture.lua @@ -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)