https://github.com/marfullsen/draw-a-circle
Just drawing a circle with Python and Pillow library.
https://github.com/marfullsen/draw-a-circle
Last synced: over 1 year ago
JSON representation
Just drawing a circle with Python and Pillow library.
- Host: GitHub
- URL: https://github.com/marfullsen/draw-a-circle
- Owner: Marfullsen
- Created: 2021-04-09T02:04:04.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-09T23:49:24.000Z (about 5 years ago)
- Last Synced: 2025-01-10T05:36:31.015Z (over 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.MD
Awesome Lists containing this project
README
# Draw a circle
[](https://www.python.org/)
[](https://pypi.org/project/Pillow/)
[](https://github.com/Marfullsen/)
## Desc
Just drawing a simple circle with Python using [PIL](https://pypi.org/project/Pillow/) library, the docs are [here](https://pillow.readthedocs.io/en/stable/).
Also provides function to draw multiple circles.
## Install Dependencies & Usage
1. Install `git`.
2. Clone, enter the directory.
```
git clone https://github.com/Marfullsen/draw-a-circle.git
cd draw-a-circle
```
3. Install dependencies.
```
pip install Pillow
```
or
```
python3 -m pip install Pillow
```
or´
```
sudo apt-get install python-pil
```
or
```
sudo pip install pillow
```
or
```
sudo easy_install pillow
```
4. Open with Python3
```
python draw_a_circle.py
```
5. Enjoy!
PD: the image canvas is always 200 X 200
## Examples
[](https://github.com/Marfullsen/)
[](https://github.com/Marfullsen/)
## Credit
I just transcoded [this](https://stackoverflow.com/a/58629898) answer on StackOverflow written with Java.