A p5.Element can become a child of another element via its method parent():
p5js.org/reference/#/p5.Element/parent
And a p5.Element can make another element its child via its method child():
p5js.org/reference/#/p5.Element/child
A p5.Element can become a child of another element via its method parent():
p5js.org/reference/#/p5.Element/parent
And a p5.Element can make another element its child via its method child():
p5js.org/reference/#/p5.Element/child