Iterative Gerchberg-Saxton algorithm is applied for the formation of a given intensity distribution in the far-field zone by means of bimorph flexible mirror. Results of supergaussian beam formation from initial gaussian and ring-like intensity distribution art. presented. Transformation of a gaussian intensity profile into ring-like one is shown as well. Results of numerical and experimental formation are in good agreement.