42/fract-ol.git
22 months agoRepair Makefile after previous commit
Lukas Jiriste [Tue, 16 Jan 2024 09:55:23 +0000 (10:55 +0100)]
Repair Makefile after previous commit

22 months agoChange Makefile to download submodules
Lukas Jiriste [Tue, 16 Jan 2024 09:38:15 +0000 (10:38 +0100)]
Change Makefile to download submodules

Add target %/Makefile to Makefile and add Makefiles of subprojects as
prerequisites for compilation. This ammends the situation when after git
clone, the submodule folders are empty nad compilation fails because
header files are missing.

22 months agoUpdate Libft
Lukas Jiriste [Tue, 16 Jan 2024 09:22:22 +0000 (10:22 +0100)]
Update Libft

Update Libft (not needed?).
Change Makefile to reflect changes in Libft structure.
Add debug target to Makefile which compiles with -g and propagates to
Libft.

2 years agoAdd general function for constructing Julia sets
Lukas Jiriste [Tue, 5 Dec 2023 19:20:21 +0000 (20:20 +0100)]
Add general function for constructing Julia sets

This function has different prototype that mandelbrot function so some
work should be done about unifying it for easier swapping of the two.

This function may be used to construct specialized functions.

2 years agoSplit event handling from main. Add color smoothing.
Lukas Jiriste [Tue, 5 Dec 2023 18:52:17 +0000 (19:52 +0100)]
Split event handling from main. Add color smoothing.

Move event handling (and no_event_handle) functions to
event_handling.c.
Add smoothing to mandelbrot output.

2 years agoAdd 42 header to each .c and .h file
Lukas Jiriste [Sat, 11 Nov 2023 17:51:58 +0000 (18:51 +0100)]
Add 42 header to each .c and .h file

2 years agoGeneralize palette construction
Lukas Jiriste [Sat, 11 Nov 2023 17:44:45 +0000 (18:44 +0100)]
Generalize palette construction

Add general approach to constructing palletes with "equidistant
partitioning" of colors. Change mandelbrot in main accordingly, but it
should probably be separated to another file (fractals.c?)
Remove (comment out) enhancement of computed fractal when no event
happens, because it causes valgrind to report issues. Further
investigation needed.

2 years agoAdd hook to make window closeable by close button
Lukas Jiriste [Sat, 11 Nov 2023 17:25:16 +0000 (18:25 +0100)]
Add hook to make window closeable by close button

2 years agoAdd clean and fclean rules to Makefile
Lukas Jiriste [Sat, 11 Nov 2023 16:49:20 +0000 (17:49 +0100)]
Add clean and fclean rules to Makefile

2 years agoUpdate Libft for reliable make.
Lukas [Wed, 8 Nov 2023 09:21:23 +0000 (10:21 +0100)]
Update Libft for reliable make.

2 years agoFinish the foundation, provide basic functionality
Lukas [Wed, 8 Nov 2023 09:14:55 +0000 (10:14 +0100)]
Finish the foundation, provide basic functionality

Make structural changes to project for easier handling and addition of
palettes and fractals.
Introduce the executable actually working. It draws mandelbrot set.
Add zoom in/out functionality.
Introduce some color issues (needs investigation).

2 years agoSave work down so far for access from elsewhere
Lukas [Fri, 3 Nov 2023 10:36:35 +0000 (11:36 +0100)]
Save work down so far for access from elsewhere

This should not really be a commit, but I can access it from another
location this way. The changes will be listed in the following commit
hopefully.

2 years agoMake program print Mandelbrot set, close on ESC
Lukas [Thu, 2 Nov 2023 10:19:40 +0000 (11:19 +0100)]
Make program print Mandelbrot set, close on ESC

2 years agoAdd .gitignore
Lukas Jiriste [Wed, 1 Nov 2023 12:41:04 +0000 (13:41 +0100)]
Add .gitignore

Add .gitingore to this project and update Libft to also include
.gitignore file in order not to disturb the git status command's results
when run on built project.

2 years agoCreate this repo, Makefile and test program
Lukas Jiriste [Fri, 27 Oct 2023 13:02:59 +0000 (15:02 +0200)]
Create this repo, Makefile and test program

This program creates Hello world window.