it's only 2 values, can we just repeat the relevant code instead of doing 2 unneeded heap allocations in the paint event?