A printer comprising: a transport mechanism that transports a base material downstream in a predetermined transport path; a primer ejector that is configured to eject a primer to the base material transported by the transport mechanism; a first ink ejector that is configured to eject first ink to the base material on a downstream side of the primer ejector; a precuring part that is configured to precure the first ink applied to the base material in order to whitewash the ground of the base material on a downstream side of the first ink ejector; a second ink ejector that is configured to eject second ink to the base material on a downstream side of the precuring part, the second ink amount expresses a gradation of an image to be printed and is thus controlled in accordance with a dot area ratio indicated by an image data; and a controller that is configured to control an amount of the primer that is ejected to a unit region of the base material by the primer ejector, an amount of the first ink that is ejected to the unit region by the first ink ejector, and an amount of the second ink that is ejected to the unit region by the second ink ejector, wherein the controller is configured to execute: processing for determining a first primer amount in accordance with the amount of the first ink that corresponds to a coverage of the ground of the base material; processing for determining a second primer amount in accordance with the amount of the second ink which is the amount corresponding to the dot area ratio indicated by the image data; and processing for determining the amount of the primer in accordance with a sum of the first primer amount and the second primer amount, and wherein the first ink is white ink, and the second ink is non-white color ink. a transport mechanism that transports a base material downstream in a predetermined transport path; a primer ejector that is configured to eject a primer to the base material transported by the transport mechanism; a first ink ejector that is configured to eject first ink to the base material on a downstream side of the primer ejector; a precuring part that is configured to precure the first ink applied to the base material in order to whitewash the ground of the base material on a downstream side of the first ink ejector; a second ink ejector that is configured to eject second ink to the base material on a downstream side of the precuring part, the second ink amount expresses a gradation of an image to be printed and is thus controlled in accordance with a dot area ratio indicated by an image data; and a controller that is configured to control an amount of the primer that is ejected to a unit region of the base material by the primer ejector, an amount of the first ink that is ejected to the unit region by the first ink ejector, and an amount of the second ink that is ejected to the unit region by the second ink ejector, wherein the controller is configured to execute: processing for determining a first primer amount in accordance with the amount of the first ink that corresponds to a coverage of the ground of the base material; processing for determining a second primer amount in accordance with the amount of the second ink which is the amount corresponding to the dot area ratio indicated by the image data; and processing for determining the amount of the primer in accordance with a sum of the first primer amount and the second primer amount, and wherein the first ink is white ink, and the second ink is non-white color ink. processing for determining a first primer amount in accordance with the amount of the first ink that corresponds to a coverage of the ground of the base material; processing for determining a second primer amount in accordance with the amount of the second ink which is the amount corresponding to the dot area ratio indicated by the image data; and processing for determining the amount of the primer in accordance with a sum of the first primer amount and the second primer amount, and wherein the first ink is white ink, and the second ink is non-white color ink.