Improvements made to the algorithm! Refactored, renamed variables meaningfully, consistent style, more meaningful progress bar updates, new interpolation algorithm produces drastically better, less streaky filling: #include <stdlib.h>#include <string.h>#include static void query( void );static void run( const gchar *…