The invention provides for lenses fabricated as planar thin film coatings with continuous structure. The lensing action is due to optical axis orientation modulation in the plane of the lens. The lenses of the current invention are fabricated using photoalignment of a liquid crystal polymer wherein the polarization pattern of radiation used for photoalignment is obtained by propagating the light through an optical system comprising a shape-variant nonlinear spatial light polarization modulators.