1. Top
A filter that takes a region in a monolith buffer and applies dither with two arbitrary colors. Implemented as a Janet plugin that works with Monolith.
Many thanks to this blog postfor providing clear instructions on how to implement this.
<<dither.c>>=
#include <math.h>
#define MONOLITH_ANSI
#include "janet/janet.h"
#include "graforge.h"
#include "runt.h"
#include "monolith.h"
<<grayscale>>
<<algorithm>>
<<janet_function>>
<<funclist>>
<<plugin_entry>>
prev | home | next