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 "Update a Color" action to dynamically change icon layer color properties. #28

Merged
merged 4 commits into from
Nov 10, 2023

Conversation

mpaperno
Copy link
Collaborator

@mpaperno mpaperno commented Nov 9, 2023

Adds a new action to update a color of a relevant layer element. A generic option selects which color to update for elements that have multiple colors.

image

Example usage:

image

…x/value update to break up into separate handlers using shared functions.
…value so that colors can be changed per drawn segment/bar; Add `setColor()` method; Store pre-calculated fractional percent values instead of computing on each render pass.
@mpaperno
Copy link
Collaborator Author

mpaperno commented Nov 9, 2023

The Bar Graph has a special implementation that changes the color of each bar individually. Using a "Update Color" action on it will change the next color to be used, not the current bar colors. This allows an effect which is otherwise not possible to achieve (unlike changing the color of all the bars which could be done with a filter or overlay).

The effect looks like this, for example, changing color based on value:
image

@mpaperno mpaperno changed the title Mp/feat color update Add "Update a Color" action to dynamically change icon layer color properties. Nov 9, 2023
@mpaperno mpaperno merged commit acb3dc9 into main Nov 10, 2023
@mpaperno mpaperno deleted the mp/feat_color_update branch November 10, 2023 01:35
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.

2 participants