Give it a border, rounded corners, 10px padding on all sides.
JNS2ATVJRXCIBGRFRPPN63OAOQRVV7GE2VRAL3T6YNRXFX6YYMQAC
ZUXG2RU4WF5WF7EYU2XQJ6AERLJLOMGDEXWRMGWHT5DR3B7X7MWQC
YUQ4YINAT5YTK3CAY4VK3HSYQ4D63FXLLPMC4R3DUFHIZIUQO7WQC
T7T66GEUFLP3YHZN5UNOVBYK33KISJWJQKCPZU6MQH45KSU7CZZQC
J62CVGNGJZSN7TMTE2SG53O47YG4SJGJFTUFKVOZY4TM4KAC566QC
UJ2RZ43LIVRIBWIXHXMLIQIQTL32VVEN4CVU7PEBTITQFPO4EXXQC
Nodes = {}
Nodes = { {type='text', x=0,y=0, margin=0, width=400, bg={r=0,g=1,b=1}},}
Nodes = {
{type='text', x=0,y=0, margin=0, width=400, bg={r=0,g=1,b=1}},
}
love.graphics.rectangle(obj.drawmode or 'fill', vx(obj.x),vy(obj.y), scale(obj.w),scale(obj.h))
love.graphics.rectangle(obj.drawmode or 'fill', vx(obj.x),vy(obj.y), scale(obj.w),scale(obj.h), scale(obj.corner_radius))
end
node_to_render = {type='rectangle', r=node.bg.r, g=node.bg.g, b=node.bg.b, x=node.x, y=node.y}
node_to_render = {type='rectangle', drawmode='line', r=0.5, g=0.5, b=0.5, x=node.x-10, y=node.y-10, corner_radius=5}
node_to_render.w = node.w node_to_render.h = node.h
node_to_render.w = node.w
node_to_render.h = node.h
node_to_render.w = node.w+20 node_to_render.h = math.max(node.h, 3*node.editor.line_height)+20
node_to_render.w = node.w+20
node_to_render.h = math.max(node.h, 3*node.editor.line_height)+20
-- use an editor to wrap the text
obj.editor.lines = load_array(obj.data)
if d == nil then return nil end