aboutsummaryrefslogtreecommitdiff
path: root/src/helper.c
blob: b78669c56f87fe6e11438d219c86e58e92f8bc0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   helper.c                                           :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: cacharle <marvin@42.fr>                    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/02/24 11:54:57 by cacharle          #+#    #+#             */
/*   Updated: 2020/02/27 14:46:51 by cacharle         ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "fractol.h"

void	h_zoom_in(t_state *state)
{
	state->plane.r /= ZOOM_SPEED;
	state->plane.i /= ZOOM_SPEED;
	/* state->iterations += 3; */
	/* state_update_palette(state); */
}

void	h_zoom_out(t_state *state)
{
	state->plane.r *= ZOOM_SPEED;
	state->plane.i *= ZOOM_SPEED;
	/* state->iterations -= 3; */
	/* state_update_palette(state); */
}