Skip to content

Conversation

@sagudev
Copy link
Contributor

@sagudev sagudev commented Oct 6, 2025

Comment on lines 133 to 136
AlphaColor::<Srgb>::new(std::array::from_fn(|i| {
last_c.components[i]
+ (this_c.components[i] - last_c.components[i]) * ((u - last_u) / du)
}))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE: lerp on AlphaColor in color converts colors to premultiplied does interpolation and then unpremultiplied (interpolation happens in premultiplied alpha space).

Signed-off-by: sagudev <[email protected]>
@nicoburns
Copy link
Contributor

We should publish a patch release of peniko with linebender/peniko#148 before merging this to avoid a git dependency on peniko (#AlwaysReleasableMainBranch)

@sagudev
Copy link
Contributor Author

sagudev commented Oct 6, 2025

We should publish a patch release of peniko with linebender/peniko#148 before merging this to avoid a git dependency on peniko (#AlwaysReleasableMainBranch)

Yes, that's why it's draft.

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