dying interior carpet?

i painted mine waited an hour then vacumed it with a brush attachment then painted and vacumed again and it came out pretty good.