Assign the digit $0$ to blue, $1$ to yellow, $2$ to red, and $3$ to green.
Assign the digit $4$ to blue, $3$ to yellow, $2$ to red, and $1$ to green.
Assign the digits $0, 1$, and $2$ to blue; $3, 4,$ and $5$ to yellow; $6, 7,$ and $8$ to red; and $9$ to green.
Assign the digits $0, 1, 2,$ and $3$ to blue; $4, 5,$ and $6$ to yellow; $7$ and $8$ to red; and $9$ to green.