How to Graph Functions with Bézier Curves
Since Bézier curves are so ubiquitous in computer graphics, they are a natural choice for plotting the graph of a
function. At their core, Bézier curves are polynomial in nature, so unless the graph is for a polynomial function with
the same degree as our Bézier curve, we are forced to approximate. In this post, I will detail the thought process
behind my implementation of a Bézier function plotter.
Tags
Embedding a Python Application in uWSGI
Tags
Writing a Simple Notcurses Program
Notcurses is a modern TUI library written by Nick
Black (who you may see around the net as dankamongmen or some equally
dank designation). As Dank himself will tell you, the older ncurses library is beautifully
documented, rigorously tested, and very well supported. It is, however, quite old tracing its
history back to at least 1982, and as such lacks some modern features such as thread-safety. I had
been using the venerable ncurses for my fireplace program -
a use case that it was never designed to handle. Overall ncurses does a good job, but there is
occasional tearing and artifacts. Notcurses solved all the graphical glitches beautifully, and
performance was noticeably improved. The problem is that just about the only other person using
notcurses is Nick Black himself, and while his documentation is extensive, it is mostly source code
snippets with few examples. Hopefully this article will provide a nice jumping-off point for the
absolute beginner.
Tags
On Substitution Ciphers
Tags