diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-04-20 01:59:31 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-04-20 01:59:31 -0400 |
| commit | e421022ffbe502bb44393d4a437056a952924cb8 (patch) | |
| tree | 07b0044a99b37b64fdc2112d9873f2831f5a802a /src/plotting.h | |
| parent | a6f125eae289a00dec324e139d64002fae14bcfb (diff) | |
updated multiple types to const
Diffstat (limited to 'src/plotting.h')
| -rw-r--r-- | src/plotting.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plotting.h b/src/plotting.h index 9d72b69..d94c7bc 100644 --- a/src/plotting.h +++ b/src/plotting.h @@ -20,12 +20,12 @@ typedef struct { typedef char gradient; // for AoS -color get_color(size_t iterations, size_t max_iterations, gradient map); +color get_color(const size_t iterations, const size_t max_iterations, const gradient map); // for SoA -char get_red(size_t iterations, size_t max_iterations, gradient map); -char get_green(size_t iterations, size_t max_iterations, gradient map); -char get_blue(size_t iterations, size_t max_iterations, gradient map); +char get_red(const size_t iterations, const size_t max_iterations, const gradient map); +char get_green(const size_t iterations, const size_t max_iterations, const gradient map); +char get_blue(const size_t iterations, const size_t max_iterations, const gradient map); colors_t* create_colors(size_t x, size_t y); -colors_t* copy_colors(colors_t* colors); +colors_t* copy_colors(const colors_t* colors); void free_colors(colors_t* colors); |
