Avatar ·

Cómo dibujar un muro de ladrillos en un bucle for en python

📁 python, IA

Hay una biblioteca simple_draw para dibujar primitivas gráficas simples. No puedo entender cómo dibujar un bucle de líneas verticales, más precisamente, me sale una línea por fila con desplazamiento.

width = 100height = 50x = 0y = 0x_1 = 100y_1 = 50rows = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)x0 = 0y0 = 0x1 = 600y1 = 0x_v_0 = 0y_v_0 = 0x_v_1 = 0y_v_1 = 50