From 8fc02cd0e611ec5db250861b6e180285b8d57a01 Mon Sep 17 00:00:00 2001 From: visionmercer <62051836+visionmercer@users.noreply.github.com> Date: Mon, 11 May 2026 11:39:10 +0200 Subject: [PATCH] Checkerboard canvas background. --- pixler.bas | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pixler.bas b/pixler.bas index 0068775..a81a7fd 100644 --- a/pixler.bas +++ b/pixler.bas @@ -44,7 +44,15 @@ layers(3).ihandle=_newimage(320,320,32) _dest layers(0).ihandle addcommand "canvas ("+str$(_width)+","+str$(_height)+")" -line (0,0)-(_width-1,_height-1),_rgb32(255),bf +for y = 0 to _height - 16 step 16 + for x = 0 to _width - 16 step 16 + if ((x / 16) + (y / 16)) mod 2 = 0 then + line (x, y)-(x + 16, y + 16), _rgb32(127), bf + else + line (x, y)-(x + 16, y + 16), _rgb32(192), bf + end if + next +next _dest 0 state.tool = 1 state.zoom = 1.0