Creating disks for rotary encoders

Here you can find two simple postscript files, that are fully configurable (see comments in the first example) for (almost) any size and resolution (i.e. number of bits).

Example image of a gray-encoded disk and its postscript source.

Example image of a binary-encoded disk and its postscript source.