Advertisement
NukeVsCity

uploader

Mar 10th, 2022
19,277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. --FOLLOW WHAT I DID IN THE VIDEO https://youtu.be/6ek5Pm0wLNs
  2.  
  3. local function color_pixel(index,color)
  4. local connection = (getconnections(UI[tostring(index)].MouseButton1Click))[1]
  5. setupvalue(connection.Function,9,color)
  6. connection.Function()
  7. end
  8. local low_quality = 25
  9.  
  10. lq=low_quality
  11. for i=1,1024 do
  12. v=imageBytes[i]
  13. if not v or not v.R or not v.G or not v.B then continue end
  14. -- if v.R == 0 and v.G == 0 and v.B == 0 then v = {R=255,G=255,B=255} end
  15. local r,g,b = v.R or 0,v.G or 0,v.B or 0
  16. print(i, r-(r%lq),g-(g%lq),b-(b%lq))
  17. color_pixel(i,Color3.fromRGB(r-(r%lq),g-(g%lq),b-(b%lq)))
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement