change indentation from 2 spaces to 4, fix #5

This commit is contained in:
jomo
2015-01-06 23:38:42 +01:00
parent 3435e99432
commit 9a916ed2cd
24 changed files with 1522 additions and 1522 deletions

View File

@@ -10,15 +10,15 @@ z_plot_size = 3
padding = 1
def base_coords(x, z):
pid = plot_id(x, z)
return [pid[0] * (x_plot_size + padding), pid[1] * (z_plot_size + padding)]
pid = plot_id(x, z)
return [pid[0] * (x_plot_size + padding), pid[1] * (z_plot_size + padding)]
def bounds(x, z):
base = base_coords(x, z)
return [base, [base[0] + x_plot_size, base[1] + z_plot_size]]
base = base_coords(x, z)
return [base, [base[0] + x_plot_size, base[1] + z_plot_size]]
def plot_id(x, z):
return [x // (x_plot_size + padding), z // (z_plot_size + padding)]
return [x // (x_plot_size + padding), z // (z_plot_size + padding)]
x = int(sys.argv[1])