Transformation of the unit square