The Pattern node can generate several procedural greyscale patterns for the input texture coordinates.
Once connected to the Gradient Ramp node it's possible to assign colors to different grey levels of the Pattern node.