(0.0.0) Box And Child - JujuAdams/Bento GitHub Wiki
//Define our base box
box = bento_box_region(20, 20, room_width-20, room_height-20);
with(box) //Go into the scope of the box element
{
//Create a 200x200 box as a child
//Calling an element creator function inside another element creates a hierarchy
with(bento_box(200, 200)) //Go into the child's scope
{
place(10, 10); //Position at 10,10 pixels from the top-left corner of the parent
style.fill.color = c_red; //Make this child red
}
}