[Home] [Downloads] [Search] [Help/forum]

Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  Fun with Text

Fun with Text

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by Pink Olifaunt   (11 posts)  [Biography] bio
Date Thu 06 Mar 2008 02:03 AM (UTC)

Amended on Thu 06 Mar 2008 02:06 AM (UTC) by Pink Olifaunt

Hello all,

I thought I'd release this little thing I've been dabbling with for a while in case anyone finds it useful. It's called TextMap and it's basically a bitmap for text. The idea is to be able to do the kind of text layout stuff you often need to do in a script: drawing tables and nicely formatted status reports and the like -- in a much less awkward way than the usual method of scan converting everything line by line.

TextMap is a Lua class that behaves much like an image class you'd expect to find in a graphics library. It can copy, paste, fill, draw lines and boxes, tile, draw gradients, and there's a simple lighting effect. When the image is finished you can convert it to plain text, ANSI, or MUSHclient's ColourNote format.

I've put up a very lame 3 minute webpage where you can download the script and a demo plugin that makes use of it, and there are some screenshots:


Any feedback and bug reports are welcome, and I'd be interested to see any pretty pictures anyone manages to make with it :)

[Go to top] top

Posted by Onoitsu2   USA  (248 posts)  [Biography] bio
Date Reply #1 on Thu 06 Mar 2008 08:50 AM (UTC)
This looks quite interesting. If this things is easily used on the fly, one could make a mapper, or many other things even.

Nice job.

[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]