An open API service indexing awesome lists of open source software.

https://github.com/epost/netpbm-mode

Emacs major mode for editing NetPBM graphics files.
https://github.com/epost/netpbm-mode

emacs-mode graphics-editor netpbm

Last synced: 5 months ago
JSON representation

Emacs major mode for editing NetPBM graphics files.

Awesome Lists containing this project

README

          

#+title:NetPBM mode

An Emacs major mode for editing NetPBM Graphics files. NetPBM is an ASCII file format for specifying raster graphics, see https://en.wikipedia.org/wiki/Netpbm_format.

* Example sprite in NetPBM

This sprite was taken from my [[https://github.com/epost/c64-game][Commodore 64 space shooter game]].

#+BEGIN_SRC pbm :file ship-generated.png :export both :width 200
P1
24 12
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1
0 1 1 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
0 0 1 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 0
0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0
0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
#+END_SRC

#+RESULTS:
[[file:ship-generated.png]]

Note: Emacs natively support rendering PBM graphics files: [[./examples/sprite-ship.P1.pbm]]

* Features to be added

- [X] basic ~P1~ format support
- [ ] org-babel backends
- [X] ob-bpm
- [ ] support ~P2~ ... ~P7~ formats