Setting a color for all staff objects automatically [obsolete in 2.25]

To color all objects on a staff is a laborious task. However, this can be automated by using some Scheme code to access the list of objects contained in all-grob-descriptions. All graphical objects which live in the Staff context can then be colored by setting their color property.

This snippet is obsolete in LilyPond 2.25, which introduces a much simpler method:

\layout { property-defaults.color = "blue" }