Skip to content
Discussion options

You must be logged in to vote

@iamdanielv thanks for bringing this up!

I had scoped PaletteFx's functions (palettefx_interp_color, etc.) within the file defining RGB matrix effects, thinking that they are only useful there. I had not considered that these functions may be useful outside that context, but you're right, they could be.

I just pushed commit d666813 to revise such that thes functions are now usable from keymap.c (the change amounting to adding their declarations to palettefx.h and removing static qualifiers):

  • palettefx_get_palette_data()
    Gets the color data for the selected palette.

  • palettefx_get_palette_data_by_index(i)
    Gets the color data for the ith palette.

  • palettefx_num_palettes()
    Returns the nu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iamdanielv
Comment options

Answer selected by iamdanielv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants