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

Update to Vello 0.3, Peniko 0.2 #37

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

waywardmonkeys
Copy link
Collaborator

No description provided.

@waywardmonkeys waywardmonkeys marked this pull request as draft December 18, 2024 04:43
@waywardmonkeys waywardmonkeys marked this pull request as ready for review December 18, 2024 04:48
@waywardmonkeys waywardmonkeys added this pull request to the merge queue Dec 18, 2024
Merged via the queue into linebender:main with commit 5e0269e Dec 18, 2024
15 checks passed
@waywardmonkeys waywardmonkeys deleted the update-vello-peniko branch December 18, 2024 05:43
@@ -407,7 +407,7 @@ impl Brush {
/// Evaluates the animation at the specified time.
pub fn evaluate(&self, alpha: f64, frame: f64) -> fixed::Brush {
match self {
Self::Solid(value) => value.evaluate(frame).with_alpha_factor(alpha as f32).into(),
Self::Solid(value) => value.evaluate(frame).multiply_alpha(alpha as f32).into(),
Self::Gradient(value) => value.evaluate(frame),
Copy link
Member

Choose a reason for hiding this comment

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

Should this have multiply_alpha here as well?

(The other question is, why is alpha a parameter to this function at all?)

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.

3 participants