paint gun allows you to repaint blocks/parts/character/trees
also, paint gun allows you to get the color of the object in front of the gun if it is no further than 16 blocks (4 meters)
the range of the paint gun is limited to 16 blocks (4 meters)
component name - paint

methods:

            --causes the object in front of the cannon to be repainted

local colors = require("colors")
local paint = getComponent("paint")

function callback_loop()
    if sm.game.getCurrentTick() % 10 == 0 then
        paint.shot(sm.color.new(colors.hsvToRgb((getUptime() % 160) / 160, 1, 1)))
    end
end