draw_title = function(text, panelx, panely, panel_width) -- draw title text at top-right of panel whose top-left is panelx,panely App.color{r=0.7,g=0.7,b=0.7} love.graphics.draw(text, panelx + panel_width - text:getWidth() - Margin*2, panely+10) return panely + 100 end