\version "2.17.6"

\header{
  texidoc = "Each grob can have a color assigned to it.
Use the @code{\\override} and @code{\\revert} expressions to set the
@code{color} property."
}

\paper { ragged-right = ##t }

\relative c' {
  \override Accidental.color = #darkgreen
  \override Beam.color = #cyan
  \override NoteHead.color = #darkyellow
  c4
  \override NoteHead.color = #red
  f
  \override NoteHead.color = #darkmagenta
  g
  \override NoteHead.color = #darkblue
  b
  \override NoteHead.color = #green
  \override Stem.color = #blue
  \override Flag.color = #magenta
  e8 es d dis e4 r
}
