You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Making a frame with borders 1-wide creates seemingly undefined behaviour (in terms of how the borders will be drawn). In general, only one side is drawn at a time, leading to the other side being "open".
Minimal Working Example
-- Basalt configurated installerlocalfilePath="/basalt.lua" --here you can change the file path default: basaltifnot(fs.exists(filePath))thenshell.run("pastebin run ESs1mg7P packed true "..filePath:gsub(".lua", "")) -- this is an alternative to the wget commandendlocalbasalt=require(filePath:gsub(".lua", ""))
localmain=basalt.createFrame("mainFrame")
localW, H=main:getSize()
localframe=main:addFrame("frame")
frame:setSize(W-2, math.floor(H/2))
frame:setPosition(2, 5)
frame:setBackground(colors.black)
frame:setBorder(colors.white)
localanimation=main:addAnimation("animation")
:setObject(frame)
:size(1, math.floor(H/2), 0.5, 0.5)
animation:play()
basalt.autoUpdate()
output.mp4
Desired Solution
When becoming one-wide, a frame with border of color X should be completely filled by color X (simulating drawing on both sides of the border).
Minimal Working Example (Simulation)
-- Basalt configurated installerlocalfilePath="/basalt.lua" --here you can change the file path default: basaltifnot(fs.exists(filePath))thenshell.run("pastebin run ESs1mg7P packed true "..filePath:gsub(".lua", "")) -- this is an alternative to the wget commandendlocalbasalt=require(filePath:gsub(".lua", ""))
localmain=basalt.createFrame("mainFrame")
localW, H=main:getSize()
localframe=main:addFrame("frame")
frame:setSize(W-2, math.floor(H/2))
frame:setPosition(2, 5)
frame:setBackground(colors.black)
frame:setBorder(colors.white)
localanimation=main:addAnimation("animation")
:setObject(frame)
:size(2, math.floor(H/2), 0.5, 0.5)
:onDone(function()
frame:setSize(1, math.floor(H/2))
frame:setBackground(colors.white)
end)
animation:play()
basalt.autoUpdate()
output.mp4
The text was updated successfully, but these errors were encountered:
Problem
Making a frame with borders 1-wide creates seemingly undefined behaviour (in terms of how the borders will be drawn). In general, only one side is drawn at a time, leading to the other side being "open".
Minimal Working Example
output.mp4
Desired Solution
When becoming one-wide, a frame with border of color X should be completely filled by color X (simulating drawing on both sides of the border).
Minimal Working Example (Simulation)
output.mp4
The text was updated successfully, but these errors were encountered: