Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the ncpalette API #2565

Closed
joseluis opened this issue Jan 19, 2022 · 3 comments
Closed

update the ncpalette API #2565

joseluis opened this issue Jan 19, 2022 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@joseluis
Copy link
Collaborator

right now we have these functions for setting / retrieving the rgb color:

  • ncpalette_get_rgb8
  • ncpalette_set
  • ncpalette_set_rgb8

in order to make it more homogeneous with the rest of the API, I think we should add a new ncpalette_get_rgb function and rename ncpalette_setncpalette_set_rgb so it would be as follows:

  • ncpalette_get_rgb
  • ncpalette_get_rgb8
  • ncpalette_set_rgb
  • ncpalette_set_rgb8
@dankamongmen dankamongmen self-assigned this Jan 19, 2022
@dankamongmen dankamongmen added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 19, 2022
@dankamongmen dankamongmen added this to the 3.1.0 milestone Jan 19, 2022
@dankamongmen
Copy link
Owner

agreed with you on the desire for ncpalette_get(). regarding the rename, i don't know. void and opensuse are still back on pre-3.0 because of deps which need updating for the 3.0 name changes. i was rereading this the other day:

https://www.jwz.org/blog/2012/06/i-have-ported-xscreensaver-to-the-iphone/

and jwz's words struck me: "If there are old features that you would like to discourage the use of, then you mark them as obsolete -- but you do not remove them because thou shalt not break working code. If you don't agree with that, then please, get out of the software industry right now. Find another line of work. Please."

and i hate carrying around __deprecated__ identifiers.

but definitely we'll add ncpalette_get().

@joseluis
Copy link
Collaborator Author

ok! yeah, I agree that's fair enough :)

@dankamongmen
Copy link
Owner

added ncpalette_get()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants