Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

261 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyartforms

Generative art in Python

My playground for tests in computer-generated art forms (graphics, video, sound). Many scripts will generate multiple images for different presets, most will be in A3 print-ready format (available formats include A7..A0 and 2A0, 4A0, also some B-formats are defined). Feel free to tinker with it. Get inspired.

Stuff here may change, may be incomplete or not fully working, may be w/o docs, etc. as it is work and experiments in progress. Also no error checking. Tested only under Windows (paths!).

  • Small demo in: pyart-demo.py (possibly not everything yet).
  • Web/CGI version in: pyartw3.py (also possibly not all yet).
  • GUI version in: pyart-wxGUI.py (just started).

Actual definitions reside in file: pyart_defs.py.

Prerequisites include: pip install pillow and for video: pip install opencv-python, possibly also pip install cgi for CGI version and pip install -U wxPython for GUI version.

SOME GIF-LIKE ANIMATIONS:

script: anims.py and zxoids-anim.py

anim 01 video anim 02 video anim 04 video

LIFE:

script: life1.py

example example

LIFE 2D - IMAGES+ANIMATIONS (alive image eaters):

script: life2.py

Life2d video example#1 Life2d video example#2

example example

ASTROFORMS:

script: astroart.py

example - neutron star example - supernova

SMEARS:

script: smears.py

example - mazy1 example - mazy1 example - mazy1 example - mazy1 example - mazy1 example - mazy1 example - mazy2 example - mazy4 example - mazy4 example - mazy4 example - mazy6 example - mazy6 example - mazy7 example - mazy9 example - waves1 example - waves1

LISSAJOUS:

script: lissajous.py

example

CITY (LAME):

script: city-lame.py

example - city1

GROWING PLANTS:

script: grow.py

Growing plants video example#1

example#1

MANDELBROT FRACTAL:

script: mandelbrot.py

example

ASCII ART:

script: asciiart.py

++++++*************:::::::::::::::::#WW@@@@#:..........................,,,,,,,...........
++++++************+::::::::::::::::#WWW@@@@@@+....................,.,,,,,,,,.............
++++++************:::::::::::::::::@WWWWW@@@@W*..................,,,,..,..,,,,...........
++++++***********+:::::::::::::::::@WWWW@@@WW@@:.................,,,,,,,,,,,,,,..........
++++++***********::::::::::::::::::*WWWW@@@@@@@+..:...............,,,,,,,,,,,,...........
++++++**********+:::::::::::::::::::@WWW@@@@@@@WWW@WW@@@@@@#+.....::+:+*#@@@*::++........
++++++**********::::::::::::::::::::@WWWWW@@@@@WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW*.....
+++::**********+:::::::::::::::::::*WWWWWWW@@@WWWWWWWWWWWWWWWWWWWWWWWWWWWW*:**#@WWWW*....
:::::**********:::::::::::::::#@@@@WWWWWWWWW@@WWWWWWWWWWWWWWWWWWWWWW@+.,.........+:......
::::+*********+:::::::::::::#WWWWWWWWWWWWWWWW@@WWW+..........,,,.,,,.....................
::::+*********:::::::::::::+WWWWWWWWWWWWWWWWW@@@W#.........,,,,,,,.......................
::::+********+::::::::::::+WWWWWWWWWWWWWWWWWW@@@W*........,,,,,.,........................
::::+********::::::::::::+@WWWWWWWWWWWWWWWWWW@@WW..:.......,,,...........................
::::+*******+:::::::::::@WWWWWWWWWWWWWWWWWWWWWWW@#***+.....,.............................
::::********+:::::::::*WWWWWWWWWWWWWWWWWWWWWWWW@###***+..................................
::::*******:::::::::+@WWWWWW@:WWWWWWWWWWWWWWWWW*###****...................::++:..........
:::+******+::::::+@WWWWWWWW+::#WWWWWWWWWWWWWWW#:####**+............:+***********+........
:::+*****+::::@WWWWWWWWW@:::::+WWWWWWWWWWWWWWW:.*####*.......:+*********.....:+..........
:::+*****+::@WWWWWWWW@+::::::.:WWWWWWWWWWWWWW@..+##**..+************+....................
:::+****+::@WWWW+++:::::::::...@WWWWWWWWWWWWW@..*#******#####**+.........................
:::+****+:@WWWW#++::::::::::..:WWWWWWWWWWWWWWW###********#:.............................:
:::****+:*WWW@#:+:::::::::::.:@WWWWWWWWWWWWWWW@##*******#...............................:
::+****:::@@#*:::::::::::::::@WWWWWWWWWWWWWWWWW#######*#*...........................:::::
::+***+:::::::::::::::::::+@WWWWWWWWWWWWWWWWWWW@########:.............................:::
::+***+::::::::::::::::::#WWWWWWWWWWWWWWWWWWWWW@#######*..............................:::
::+**+::::::::::::::::::#WWWWWWWWWWWWWWWWWWWWWWW@######:.............................::::
::+**::::::::::::::::::#WWWWWWWWWWWWWWWWWWWWWWWW@#####*.............................:.:::
::**+:::::::::::::::::#WWWWWWWWWWWWWWWWWWWWWWWWW@##*##+.............................:::::
::**+::::::::::::::::#WWWWWWWWWWWWWWWWWWWWWWWWWW@##*##:........:...................::::::
:+*+::::::::::::::::*WWWWWWWWWWWWWWWWWWWWWWWWWWW#****#:........::::::.........:::.:::::::
:+*+::::::::::::::@WWWWWWWWWWWW@+:+WWWWWWWWWWWW@*******......:::::::::........:::::::::::
:++:::::::::::::*WWW@WWWWWWW#...:::.@WWWWWWWWWW@##****+......:::::::::......:::::::::::::
:+:::::::::::::*WWWWWWWWWW+......::+@WWWWWWWWWW####**#*....:::::::::::.......::::::::::::
:+::::::::::::#WWWWWWW*......*###**@WWWWWWWWWW@#######+.....::::::::::.....::::::::::::::
:::::::::::::@WWWWW@*......+#######WWWWWWWWWWW@#######.........::::::::......::::::::::::
:::::::#@@@WWWWW+.......:#########@WWWWWWWWWW*.######+...........::::::...:::::::::::::::
:::::#@WWWWWWWW#+##@##@#####*:...:WWWWWWWWWWW.######*.............::::::...::::::::::::::
:::::WWWW@*:::.#@@@@@@@#:........+WWWWWWWWWW*+######:.............:::::::..::::::::::::::
:::::*+::::::::@@@*:.............*WWWWWWWWW@.######*..............:::::::.:::::::::::::::
:::::::::::::::..................@WWWWWWWWW+.######.................:::::::::::::::::::::
:::::::::::::::.................:WWWWWWWWW#.*#####:.............:::::::::::::::::::::::::
:::::::::::::::.................*WWWWWWWW@..#####+...............::::::::..::::::::::::::

REPIXELIZE:

script: repixelize.py and repixelize-demo.py

eg. this 256x192 small image small source image can be remade into bigger (800x600 here) image with different 'finish' style: example

About

Is that even an art? Of course it is! Generative art in Python.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages