https://github.com/krother/generative_art
Generating Art with Python and Numpy
https://github.com/krother/generative_art
art machine-learning numpy python
Last synced: 10 months ago
JSON representation
Generating Art with Python and Numpy
- Host: GitHub
- URL: https://github.com/krother/generative_art
- Owner: krother
- License: mit
- Created: 2019-06-24T22:55:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-08T08:31:22.000Z (10 months ago)
- Last Synced: 2025-04-08T09:30:37.808Z (10 months ago)
- Topics: art, machine-learning, numpy, python
- Language: Jupyter Notebook
- Homepage:
- Size: 25.9 MB
- Stars: 18
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Graphics with NumPy
In this tutorial you find NumPy exercises that create images.

It is meant as a gentle introduction to NumPy.
It assumes that you have made your first steps with Python already.
To get the best out of it, put it into practice immediately:
**paint things – create art – have fun!**
----
## Installation
If you are using the [Anaconda distribution](https://www.anaconda.com/), you should have all necessary libraries already.
Otherwise, download or clone the git repository [github.com/krother/generative_art](https://github.com/krother/generative_art) and install the libraries using `pip`:
:::bash
pip install -r requirements.txt
Next, try the examples and challenges.
----
## First Steps
| Example | Topic |
|-----------|--------|
| [Creating Images](grayscale/README.rst) | Create a grayscale image |
| [Color](rgb/README.rst) | Create a RGB image |
| [Random Blur](random_blur/README.rst) | Create random pixels |
| [Flags](flags/README.rst) | Slicing |
| [Repeat](repeat/README.rst) | Repeating tiles |
## Elementary Geometry
| Example | Topic |
|-----------|--------|
| [Stars](stars/README.rst) | Indexing |
| [Lines](lines/README.rst) | Arithmetics |
| [Gradient](gradient/README.rst) | Linear space |
| [Triangles](triangles/README.rst) | Matrix operations |
| [Circles](circles/README.rst) | Euclidean Distances |
| [Mask](mask/README.rst) | Indexing |
| [Meme Generator](memegen/README.rst) | Adding text with Pillow |
## Machine Learning
| Example | Topic |
|-----------|--------|
| [K-Means](kmeans/README.rst) | Clustering |
| [Decision Tree](dtree/README.rst) | Color prediction |
| [Convolution](convolution/README.rst) | CNN kernel |
| [Monte Carlo](montecarlo/README.rst) | Sampling |
## Effects
| Example | Topic |
|-----------|--------|
| [Rotation](rotate/README.rst) | Rotation figure |
| [Shadow](shadow/README.rst) | shadow using a mask |
| [Warhol](warhol/README.rst) | Color channels |
| [Puzzle](puzzle/README.rst) | vstack and hstack |
| [Contour Lines](contour/README.rst) | Gaussian Mixture |
| [Edge Detection](sobel/README.rst) | Sobel Operator |
| [Dragon Curve](dragon_curve/README.rst) | Recursive graphics |
| [Mandelbrot](mandelbrot/README.rst) | Recursive graphics |
| [Hexpanda](hexpanda/README.rst) | Hexbin plot |
## Animations
| Example | Topic |
|-----------|--------|
| [Flower Assembly](flower_movie/README.rst) | puzzle |
| [Vortex](vortex/README.rst) | rotating parts |
| [Sand blows away](sand/README.rst) | moving particles |
| [Star Wars Titles](starwars/README.rst) | text moving in 3D |
| [Infinity Blossom](blossom/README.rst) | depth illusion |
| [Thank You](thank_you/README.rst) | scripted assembly |
----
## Contact
(c) 2024 Dr. Kristian Rother (`kristian.rother@posteo.de`)
Distributed under the conditions of the MIT License. See `LICENSE` for details.
----
## References
[The Brandenburg Gate image](https://commons.wikimedia.org/wiki/File:Brandenburger_Tor_abends.jpg) is by Thomas Wolf, www.foto-tw.de / Wikimedia Commons / CC BY-SA 3.0