Creating offset curve which occupies 50% of the area

See this thread