A process for producing a cosmetic composition that includes step a) inkjet printing onto a basic cosmetic composition, using an inkjet printer, at least one fluid composition in an amount chosen so as to impregnate the basic composition over only a part of its thickness, and step b), after at least one sampling of the impregnated layer, repeating step a) while optionally modifying the fluid composition inkjet-printed.