[ad_1]
Created by dontbanimtoocool
Features:
required pip modules:
– flask
– Pillow
– requests
python file: download
virus total: VT
local image = 'https://media.discordapp.net/attachments/948249412835098634/955526363899629658/v3rm-6.png' -- image you want to import
local resolutionX = 32 -- usually it's 32 but it might change depending on the frame?
local resolutionY = 32 -- usually it's 32 but it might change depending on the frame?
-- epic coding stuf --
local grid = game.Players.LocalPlayer.PlayerGui.MainGui.PaintFrame.Grid
local h = game:GetService("HttpService")
function getjson(url)
local begin = game:HttpGet("http://localhost:57554/get?url="..url)
local json = h:JSONDecode(begin)
return json
end
function import(url)
local pixels = getjson(url)
local cells = {}
local index = 1
grid['1'].BackgroundColor3 = Color3.fromRGB(
pixels[1][1],
pixels[1][2],
pixels[1][3]
)
for y = 1, resolutionX, 1 do
for x = 1, resolutionY, 1 do
pcall(function()
local pixel = pixels[index]
index = index + 1 -- index += 1 doesn't work wtf
local r = pixels[index][1]
local g = pixels[index][2]
local b = pixels[index][3]
grid[tostring(index)].BackgroundColor3 = Color3.fromRGB(r, g, b)
table.insert(cells, pixel)
end)
end
pcall(function()
local pixel = pixels[index]
index = index + 1 -- index += 1 doesn't work wtf
local r = pixels[index][1]
local g = pixels[index][2]
local b = pixels[index][3]
grid[tostring(index)].BackgroundColor3 = Color3.fromRGB(r, g, b)
table.insert(cells, pixel)
end)
end
game.StarterGui:SetCore(
"SendNotification",
{
Title = "done",
Text = "finished importing, check the drawing grid"
}
)
end
import(image)
ENJOY!
Warning: DO NOT DOWNLOAD anything from this page, you’re only here to copy the script!
[ad_2]