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

Add support for agents to be coloured with array variables #876

Merged
merged 2 commits into from
Aug 1, 2022

Conversation

Robadob
Copy link
Member

@Robadob Robadob commented Jun 20, 2022

Carlos wanted it, didn't take long.

Simply call setAgentArrayVariableElement() with the index of the element (default 0) on the ColorFunction before passing it to setColor().

This required an update to the visualiser too (See FLAMEGPU/FLAMEGPU2-visualiser#90), which should be merged first, so that CMake can be updated to point to the new Visualiser version before this is merged.

CI failing bc it's pointed at old vis.

@Robadob Robadob force-pushed the color_agent_array_variables branch from fde5f5e to f2429e5 Compare June 20, 2022 21:01
Base automatically changed from bugfix_vis_2022_06_20 to master June 22, 2022 14:17
@Robadob Robadob force-pushed the color_agent_array_variables branch from f2429e5 to b5d5cf2 Compare August 1, 2022 08:54
This rolls in support for colouring agents from array variables and two new stock models.
@Robadob Robadob merged commit ca209d0 into master Aug 1, 2022
@Robadob Robadob deleted the color_agent_array_variables branch August 1, 2022 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant