RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Write me stormworks lua code that draws a red circle onto a 1x1 monitor (32x32 pixels)"
local monitor = script.Parent local gfx = Instance.new("ImageLabel") gfx.Parent = monitor gfx.Size = UDim2.new(1, 0, 1, 0) gfx.BackgroundColor3 = Color3.new(1, 0, 0) gfx.Image = "rbxassetid://YourImageIdHere" local radius = 16 local center = Vector2.new(16, 16) for x = 0, 31 do for y = 0, 31 do local point = Vector2.new(x, y) local dist = (point - center).magnitude if dist < radius then gfx:SetPixel(x, y, Color3.new(1, 0, 0)) end end end