2020-04-12 06:06:36 +00:00
|
|
|
# Learning Python
|
|
|
|
|
2020-10-07 09:59:33 +00:00
|
|
|
This is the Repository for my python projects. 🤪
|
2020-04-12 06:06:36 +00:00
|
|
|
|
2020-10-07 09:59:33 +00:00
|
|
|
### List of what this repository contains:
|
2020-04-12 06:06:36 +00:00
|
|
|
|
2021-05-11 10:46:10 +00:00
|
|
|
* Tools
|
|
|
|
* AreaCalc
|
|
|
|
* Image to PDF
|
2020-10-07 09:59:33 +00:00
|
|
|
* Particles
|
2021-05-11 10:46:10 +00:00
|
|
|
* Explosions
|
|
|
|
|
|
|
|
# Tools
|
2020-04-12 06:06:36 +00:00
|
|
|
|
|
|
|
## AreaCalc
|
2021-05-11 10:46:10 +00:00
|
|
|
|
2020-04-12 06:06:36 +00:00
|
|
|
Is a terminal area / volume calculator written in Python and it can calculate the most shapes
|
2019-12-16 08:37:36 +00:00
|
|
|
|
2021-05-11 10:46:10 +00:00
|
|
|
<u>**How to run:**</u>
|
2020-10-07 09:59:33 +00:00
|
|
|
|
|
|
|
Open a terminal in the main folder and type:
|
2021-05-11 10:46:10 +00:00
|
|
|
>$ python3 Tools/AreaCalc/AreaCalc.py
|
2020-10-07 09:59:33 +00:00
|
|
|
|
2019-12-16 08:37:36 +00:00
|
|
|
An example of what forms it can calculate:
|
|
|
|
|
|
|
|
![alt text](https://i.imgur.com/7RR9V3Z.png "")
|
2020-10-07 09:59:33 +00:00
|
|
|
|
2021-05-11 10:46:10 +00:00
|
|
|
## Image-to-PDF
|
|
|
|
|
|
|
|
>$ pip3 install img2pdf
|
2020-10-07 09:59:33 +00:00
|
|
|
|
|
|
|
# Particles
|
|
|
|
|
|
|
|
## Explosions
|
|
|
|
|
|
|
|
An example of how you can make explosions in pygame zero.
|
|
|
|
|
2021-05-11 10:46:10 +00:00
|
|
|
<u>**How to run:**</u>
|
2020-10-07 09:59:33 +00:00
|
|
|
|
|
|
|
To run the example you need PyGame Zero. You can install it by runnig this command:
|
|
|
|
>$ pip3 install pgzero
|
|
|
|
|
|
|
|
And to run the example run this command in the main folder:
|
2021-05-11 10:46:10 +00:00
|
|
|
>$ pgzrun Particles/explosion.py
|
2020-10-07 09:59:33 +00:00
|
|
|
|
2021-05-11 10:46:10 +00:00
|
|
|
![alt text](https://i.imgur.com/ca4Bk41.png)
|