Skip to content

Fix: restore lerp alias to GLSL mix in p5.strands#8681

Merged
perminder-17 merged 2 commits intoprocessing:dev-2.0from
aashu2006:fix/strands-lerp
Mar 30, 2026
Merged

Fix: restore lerp alias to GLSL mix in p5.strands#8681
perminder-17 merged 2 commits intoprocessing:dev-2.0from
aashu2006:fix/strands-lerp

Conversation

@aashu2006
Copy link
Copy Markdown

Resolves #8646

Changes:

  • Fixes lerp() not working in p5.strands
  • Maps lerp to GLSL mix inside a Strands context
  • Falls back to normal p5.js lerp() outside

This was previously implemented in #7875 but got lost during refactoring.

Screenshots of the change:

  • The visual tests show lerp() and mix() giving the same output in p5.strands

PR Checklist

@p5-bot
Copy link
Copy Markdown

p5-bot bot commented Mar 30, 2026

Continuous Release

CDN link

Published Packages

Commit hash: 9b8a527

Previous deployments

This is an automated message.

Copy link
Copy Markdown
Collaborator

@perminder-17 perminder-17 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@perminder-17 perminder-17 merged commit 24a08dc into processing:dev-2.0 Mar 30, 2026
3 checks passed
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