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

model: Implement StreamColorSwatch.lerp, copying ColorSwatch.lerp #654

Merged
merged 3 commits into from
May 10, 2024

Conversation

chrisbobbe
Copy link
Collaborator

Done as an alternative to #642.

Related: #95

It's convenient in this method to access the colors as they're
stored in a Map, like the superclass ColorSwatch does. So, in our
own private field, we save the same Map that we pass along to the
superclass constructor. As Greg says at
  zulip#642 (comment) :

> The redundancy is mildly annoying, but it's only duplicating one
> pointer, so it's not a material cost at runtime.
@gnprice
Copy link
Member

gnprice commented May 10, 2024

Cool, with this approach it LGTM — merging.

@gnprice gnprice force-pushed the pr-stream-color-swatch-lerp branch from 233708e to fd58d45 Compare May 10, 2024 02:16
@gnprice gnprice merged commit fd58d45 into zulip:main May 10, 2024
1 check passed
@chrisbobbe chrisbobbe deleted the pr-stream-color-swatch-lerp branch May 10, 2024 03:04
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