From 68aaa784a50d187f86d5de595d9a6dbd9c3ce51c Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Thu, 25 Apr 2024 14:45:21 +0200 Subject: [PATCH] Add help to the project --- src/main.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index b0e25eb..e258329 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/10/27 14:29:26 by ljiriste #+# #+# */ -/* Updated: 2024/04/25 11:44:39 by ljiriste ### ########.fr */ +/* Updated: 2024/04/25 14:46:40 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -275,9 +275,30 @@ int parse_args(int argc, char **argv, t_session *s) return (0); } +static const char *help_str = + "This is the help for fractol by Lukáš Jiřiště\n" + "You can call the program as follows:\n\n" + "fractol [option value]\n" + "\nOptions:\n" + "\t-w\n\t\tWidth of window in pixels\n" + "\t-h\n\t\tHeight of window in pixels\n" + "\t-u\n\t\tMaximum undersample in pixels\n" + "\t-d\n\t\tDetail in maximum iterations\n" + "\t-f\n\t\tOne of these fractals:\n" + "\t\t\tman[delbrot]\n" + "\t\t\ttri[corn]\n" + "\t-s\n\t\tSpeed of color change (negative values reverse the direction)\n" + "\t-c\n\t\tColorfulness\n" + "\nControls:\n" + "\tArrow keys and wasd can be used for movement.\n" + "\tOne can zoom in with + and zoom out with - keypad." + "Zoom can also be controlled with scrollwheel on the mouse.\n" + "\tThe detail is controlled by * (increase) and / (decrease) keys.\n" + "\tThe color change can be sped up and down with 8 and 2 keys.\n"; + void print_help(void) { - ft_printf("Help to be implemented.\n"); + ft_printf(help_str); return ; } -- 2.30.2