// a, b are indices into the chat history static Web chatLinesAsWeb(int a, int b) { ret chatLinesAsWeb(stefansChat_readHistory_fullMsgs(a, b)); } static Web chatLinesAsWeb(L msgs) { Web web = simpleWeb(); new L nodes; for i over msgs: { ChatMsg msg = msgs.get(i); nodes.add(web.node("Text " + quote(msg.text))); web_addRelation(nextToLast(nodes), last(nodes), 'then); web_setPosition(last(nodes), 0.5, 0.2+i*0.6/max(1, l(msgs)-1)); } ret web; }