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.
- Host: GitHub
- URL: https://github.com/epost/netpbm-mode
- Owner: epost
- Created: 2018-04-09T15:05:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-09T22:35:24.000Z (about 8 years ago)
- Last Synced: 2025-04-02T16:25:13.186Z (about 1 year ago)
- Topics: emacs-mode, graphics-editor, netpbm
- Language: Emacs Lisp
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
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