Put the Mandelbrot sample in the README
This commit is contained in:
parent
679e9ff3f7
commit
b280d52fed
1 changed files with 45 additions and 0 deletions
45
README.rst
45
README.rst
|
|
@ -44,3 +44,48 @@ Testing
|
|||
Some of the files have unit test classes in them. To run all unit tests::
|
||||
|
||||
$ python3.4 -m unittest discover -p "*.py"
|
||||
|
||||
The most interesting program written in Kaleidoscope is the Mandelbrot set generator in chapter 6:
|
||||
|
||||
.. sourcecode::
|
||||
|
||||
$ python3.4 chapter6.py
|
||||
****************************************************************
|
||||
****************************************************************
|
||||
****************************************++++++******************
|
||||
************************************+++++...++++++**************
|
||||
*********************************++++++++.. ...+++++************
|
||||
*******************************++++++++++.. ..+++++***********
|
||||
******************************++++++++++. ..++++++**********
|
||||
****************************+++++++++.... ..++++++*********
|
||||
**************************++++++++....... .....++++********
|
||||
*************************++++++++. . ... .++*******
|
||||
***********************++++++++... ++*******
|
||||
*********************+++++++++.... .+++******
|
||||
******************+++..+++++.... ..+++*****
|
||||
**************++++++. .......... +++*****
|
||||
***********++++++++.. .. .++*****
|
||||
*********++++++++++... .++++****
|
||||
********++++++++++.. .++++****
|
||||
*******++++++..... ..++++****
|
||||
*******+........ ...++++****
|
||||
*******+... .... ...++++****
|
||||
*******+++++...... ..++++****
|
||||
*******++++++++++... .++++****
|
||||
*********++++++++++... ++++****
|
||||
**********+++++++++.. .. ..++*****
|
||||
*************++++++.. .......... +++*****
|
||||
******************+++...+++..... ..+++*****
|
||||
*********************+++++++++.... ..++******
|
||||
***********************++++++++... +++******
|
||||
*************************+++++++.. . ... .++*******
|
||||
**************************++++++++....... ......+++********
|
||||
****************************+++++++++.... ..++++++*********
|
||||
*****************************++++++++++.. ..++++++**********
|
||||
*******************************++++++++++.. ...+++++***********
|
||||
*********************************++++++++.. ...+++++************
|
||||
***********************************++++++....+++++**************
|
||||
***************************************++++++++*****************
|
||||
****************************************************************
|
||||
****************************************************************
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue