rect draws starting from current interval