Alter vertex color at runtime or construct time

How did you manage to paint vertex colors at runtime?