Folding a 1-dimensional line with a random crease pattern (mountains and valleys).
It is not guaranteed that every crease pattern is flat-foldable, but it is possible to turn a pattern that is not flat-foldable into one that is by adding creases.
Blue and Red creases are valley and mountain creases, respectively.
Green creases are added to ensure flat-foldability with an appropriate mountain or valley direction.