[code/python] Fixed the Kandinsky module in Python.

User can draw on the 320*220 drawing screen.

Change-Id: I25034b05f21aacc35608358fdb7a4d9924dd22e8
This commit is contained in:
Léa Saviot
2017-11-20 11:14:08 +01:00
parent 2aa1cb0256
commit a9f4da92c0
11 changed files with 93 additions and 14 deletions

View File

@@ -31,9 +31,9 @@ constexpr ScriptTemplate mandelbrotScriptTemplate("mandelbrot.py", R"(# This scr
# N_iteration: degree of precision
import kandinsky
N_iteration = 10
def drawMandelbrot():
def drawMandlebrot():
for x in range(320):
for y in range(240):
for y in range(222):
# Compute the mandelbrot sequence for the point c = (c_r, c_i) with start value z = (z_r, z_i)
z_r = 0
z_i = 0