#!/usr/bin/perl
-# input:
+# input file:
# lines, with one canonical subsegment specification (csss) each
# (need not be unique)
# output:
# ...code to compute and stack red in range [0,1>...
# <green> <blue> setrgbcolor
#
-# Encoding is as follows:
+# Encoding is as follows (bits from MSbit to LSbit):
#
# RED
-# 6 bits angle
-# 1 bit `edge or core' (currently 0 meaning `core')
# 1 bit reserved (0)
+# 1 bit `edge or core' (currently 0 meaning `core')
+# 6 bits angle
#
# GREEN
# 2 bits segment overflow
-# 6 bits moveable feature
+# 6 bits moveable feature and position
+# each moveable feature has an unambiguous prefix
+# the remainder of the bits are the position of that feature
+# the feature all-bits-1 (0b1111111) is for fixed track
+# (so every moveable feature prefix must contain at least one 0)
#
-#
-# 10 bits
+# BLUE
+# 8 bits segment main
+