Skip to content

Emacs major mode for editing NetPBM graphics files.

Notifications You must be signed in to change notification settings

epost/netpbm-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Commodore 64 space shooter game.

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

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 P2P7 formats

About

Emacs major mode for editing NetPBM graphics files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published