How i can create a vertex color?

Hi, i need to create a vertex color like this (see attached file)

In order to use a vertex color expresion, and this way animate a curtain excluding the top of it.

thanks :slight_smile: