Lua API Suggestion

  • QuanTech
    23rd Dec 2016 Member 0 Permalink

    Hi. I have an idea for a new TPT Lua API function:

    tpt.plot_text(top-left corner x, top-left corner y, string text) tpt.plot_text(top-left corner x, top left corner y, string text, element) tpt.plot_text(top-left corner x, top-left corner y, string text, element, color) This function plots text using an element and deco color. Defaults to DMND and no deco color when no element or color are provided. It plots a 5x5 font, since different font sizes would probably be insanely hard to implement. Please tell me what you think.

     

     

    Edited 3 times by QuanTech. Last: 24th Dec 2016
  • mniip
    23rd Dec 2016 Developer 0 Permalink
    I made something that lets you render SVG fonts with dcolor a long time ago, see if you can adapt something from there
    https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=16000
  • QuanTech
    24th Dec 2016 Member 0 Permalink

    @mniip (View Post)

     Thank you! That is amazing.