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zeflyn -- desc: a simple static paintbrush -- site: https://twitch.tv/Zeflyn -- license: MIT License (change this to your license of choice) -- version: 0.1 -- script: lua function BOOT() max_strokes = 500 --hehe space_engaged = false paintbrush = { x=0, y=0, strokes={}, prev_x=0, prev_y=0, update=function(self) local x, y, lmb = mouse() self.x = x self.y = y if lmb and (self.x ~= self.prev_x or self.y ~= self.prev_y) then table.insert(self.strokes,{ x=x, y=y, draw=function(self) circ(self.x,self.y,4,14) end }) end self.prev_x = self.x self.prev_y = self.y end, draw=function(self) circb(self.x, self.y, 4, 14) end } end function TIC() cls(0) paintbrush:update() paintbrush:draw() for i,s in pairs(paintbrush.strokes) do s:draw() end if #paintbrush.strokes > max_strokes then table.remove(paintbrush.strokes, 1) end shimmer() if key(48) then space_engaged = true end if not key(48) and space_engaged then paintbrush.strokes = {} space_engaged = false end local c = space_engaged and 1 or 13 print("press space to clear", 0, 136-8, c, false, 1, true) end function shimmer() for x=0,240 do for y=0,136 do local p = pix(x,y) if p ~= 0 then pix(x,y,rnd({1,2,3,4,5,6,7,8,9,10,11})) end end end end function rnd(x) if type(x) == "table" then return x[math.random(#x)] else return math.random(x) end end