Can you add some more code (preferably just a few lines) to make it do something cool,
funny, useful, and/or beautiful?
Would love to see what you guys come up with!
Code: Select all
InitSprite() : W=540 : H=450 : C = $82BF62 : Cellsize = 30
OpenWindow(0, 35, 35, W+1, H+40, "Awesome Pixels", #PB_Window_SystemMenu)
OpenWindowedScreen(WindowID(0),0,0,W+1,H+40,1,0,0)
StartDrawing(ScreenOutput())
For i = 0 To H Step 30 : Line(0, i, W+1, 1, $313100) : Next
For j = 0 To W Step 30 : Line(j, 0, 1, H+1, $313100) : Next
For a = 0 To W-Cellsize Step 30 : For b = 0 To H-Cellsize Step 30
If Not Random(4) : Box(a, b, Cellsize-1, Cellsize-1, C*1.3+(a+b)*3) : EndIf
Next : Next
StopDrawing() : FlipBuffers()
Repeat : Until WaitWindowEvent() = 13116