Few days ago, I discovered a very interesting library called DRAWILLE, which draws 2-D canvas in terminal using Braille, a tactile writing system for the blind people.
It might sound very odd when you put a plotting library and the characters together, but the results really amazed me. You could see from the README which I contributed a couple of animated GIFs and made a video for it to introduce to my channel subscribers.
Few hours after my contributions, I bet no one had seen the xkcd coming, but someone got the great idea and created an example code for the library. But we should know better, this isn’t the first time that xkcd-style something with serious stuff, for instance, Matplotlib.
The following was the result for the latest xkcd comic #1359, xkcd: Phone Alarm:
DRAWILLE was really created for plotting, just take a look at the following image that I made, but it also proves that you could have fun at any time with any tool you like.
It’s created by Adam Tauber under the GNU Affero General Public License Version 3, an example code for a quick peek:
from __future__ import print_function from drawille import Canvas from math import sin, radians c = Canvas() for x in range(0, 1800, 10): c.set(x / 10, 10 + sin(radians(x)) * 10) print(c.frame())
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.