added more gif and start readme

This commit is contained in:
asus
2024-01-15 22:06:54 +01:00
parent e1d5613392
commit 0b54d8c015
20 changed files with 62 additions and 30 deletions

View File

@@ -1,13 +1,23 @@
# FDF
# FDF - fil de fer
quick description
this program is written in C
- [subject here](./fdf_subject.pdf)
this is an exercize to discover 3D drawing, keyboard events, and pixel images manipulation
![limage](fdf_test_white-pink.gif)
what it does is to read a map, which is a simple text file like this one :
### ressources
```
0 0 0 0 0
0 0 0 0 0
0 10 0 0 0
0 0 0 0 0
0 0 0 0 0
```
- minilibx : https://harm-smits.github.io/42docs/libs/minilibx
- draw a line : https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm
and it will convert it into a rectangular net, like a landscape with the height equal to the numbers :
![example 3D of map before modification](assets/fdf_demo_1.jpg)
if we modify the map it will modify the 3D drawing
![example 3D of map after modifications](assets/fdf_demo_2.jpg)