I have created a container with water in it and labelled the container at different heights. (from 0 - 100ml)

5 pixels = 1ml

i now want to type in the command line: java water 50
so that the container is blue up to the number 50.

i am uncertain of how to calculate this so this works,

i am using the following: