def snoise2dz(size, z, scale=<NUM_LIT>, octaves=<NUM_LIT:1>, persistence=<NUM_LIT>, lacunarity=<NUM_LIT>):
import noise<EOL>z_l = len(z)<EOL>data = np.empty((z_l, size[<NUM_LIT:0>], size[<NUM_LIT:1>]), dtype='<STR_LIT>')<EOL>for iz in range(z_l):<EOL><INDENT>zvalue = z[iz]<EOL>for y in range(size[<NUM_LIT:0>]):<EOL><INDENT>for x in range(size[<NUM_LIT:1>]):<EOL><INDENT>v = noise.snoise3(x * scale, y * scale, zvalue,<EOL>octaves=octaves, persistence=persistence, lacunarity=lacunarity)<EOL>data[iz, y, x] = v<EOL><DEDENT><DEDENT><DEDENT>data = data * <NUM_LIT:0.5> + <NUM_LIT:0.5><EOL>if __debug__:<EOL><INDENT>assert data.min() >= <NUM_LIT:0.> and data.max() <= <NUM_LIT:1.0><EOL><DEDENT>return data<EOL>
z as seeds
scale이 작을 수록 패턴이 커지는 효과