For fun
Example
DynamicModule[
{fill},
fill = .5;
Panel @ Column[{
Slider[Dynamic @ fill, {0, 1}],
Dynamic @ Graphics[{
{FaceForm @ White, EdgeForm @ {Thick, Black},
Rectangle[{0, 0}]},
{FaceForm @ Black, Rectangle[{0, 0}, {1, Dynamic @ fill}]}
}]
},
Alignment -> Center]
]
Output