Canvas app to visualize an encoder function