Skip to content
Snippets Groups Projects
Select Git revision
  • edf154645cd7b2ea83d403aee46d369b95d2e519
  • main default protected
  • bachelor-thesis
  • keyring
  • v0.1-bachelor-thesis
5 results

colour.h

Blame
  • colour.h 556 B
    /* SPDX-FileCopyrightText: © 2022 Maik Herbers */
    /* SPDX-License-Identifier: GPL-3.0-or-later */
    
    #pragma once
    
    #include "common.h"
    
    enum colour_type {
    	colour_type_mono,
    	colour_type_cividis,
    	colour_type_viridis,
    };
    
    typedef void (*colour_function_t)(struct rgba_pix *, const mpc_t, struct temporaries, enum colour_type type);
    
    void get_colour_mono(struct rgba_pix *colour, const mpc_t val, struct temporaries tmps, enum colour_type type);
    void get_colour_cmap(struct rgba_pix *colour, const mpc_t val, struct temporaries tmps, enum colour_type type);