# Poor man's way of drawing text

**URL:** <https://discourse.ats-lang.org/t/poor-mans-way-of-drawing-text/358>\
**Category:** Google Group\
**Created:** [January 23, 2016, 6:30pm UTC](https://discourse.ats-lang.org/t/poor-mans-way-of-drawing-text/358 "2016-01-23T18:30:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmhwxi](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gmhwxi](https://discourse.ats-lang.org/u/gmhwxi)\
**Post date:** [January 23, 2016, 6:30pm UTC](https://discourse.ats-lang.org/t/poor-mans-way-of-drawing-text/358/1 "2016-01-23T18:30:43Z")

</div>

Here is an example I used to teach writing loops as tail-recursive  
functions:

[http://ats-lang.sourceforge.net/COMPILED/doc/PROJECT/SMALL/JSmydraw/Sierpinski\_3angle\_txt.html](http://ats-lang.sourceforge.net/COMPILED/doc/PROJECT/SMALL/JSmydraw/Sierpinski_3angle_txt.html)

Here is the source code for this example:

> <https://github.com/githwxi/ATS-Postiats-contrib/blob/master/projects/SMALL/JSmydraw/Sierpinski_3angle/Sierpinski_3angle_txt.html>

  

> <https://github.com/githwxi/ATS-Postiats-contrib/blob/master/projects/SMALL/JSmydraw/Sierpinski_3angle/Sierpinski_3angle_txt.dats>

I put it here so that the example could be easily found by searching the  
phrase ‘poor man’.

Cheers!
