From: ian Date: Fri, 22 Oct 2004 16:23:32 +0000 (+0000) Subject: spec for display conversion X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=cb0f20731dbd079e66cf1c3d038cc8550525c39d;p=trains.git spec for display conversion --- diff --git a/layout/subseg2display.c b/layout/subseg2display.c new file mode 100644 index 0000000..ebd9e7e --- /dev/null +++ b/layout/subseg2display.c @@ -0,0 +1,26 @@ +/* + * usage: + * subseg2display encoding.ppm [status-info ...] + * + * status-info args are: + * + * + * is + * for fixed track + * . for part of a moveable feature + * where numbers are in strtoul format, movfeatpos is the + * moveable feature and position as in segcmapassign and + * if is `.', spec is for unspecified segments. + * + * Resulting pixel is + * [ red ] + * (alpha * DIRECTION_COLOUR) + ((1-alpha) * [ green ] ) + * [ blue ] + * + * status.bin has the following format: + * 16 bits number of segments + * 2 + */ + +int main(int argc, const char *const *argv) { +}