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

Ofcolor vector constructor #7696

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

artificiel
Copy link
Contributor

is this too crude? inits an empty color then calls the appropriate setter based on number of elements.

use case: parsing a config files with colours that get passed as vectors, so:

ofColor(my_color_vector);

instead of

ofColor(my_color_vector[0], my_color_vector[1], my_color_vector[2], my_color_vector[3]);

@artificiel
Copy link
Contributor Author

well, I stumbled in a case where typename and class are not synonymous — but of course appleClang (current dev env) did not mind so I had to learn via GitHub CI... https://stackoverflow.com/questions/2023977/what-is-the-difference-between-typename-and-class-template-parameters

@artificiel artificiel mentioned this pull request May 16, 2024
36 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants