SDL - Simple DirectMedia Layer is a cross-platform multimedia library which can directly render graphics into framebuffer. Thus programs using this library are/should be portable to Kindle and other E-Paper devices.
Note: This article is pretty incomplete yet. But gives some clues for the setup.
 Environment Variables
Both work, but with inverted colors.