Skip to content

[p5.strands] Aliasing GLSL's mix as lerp #7875

Closed
@lukeplowden

Description

@lukeplowden

Increasing access

This change will increase access to p5.strands and shader programming in general by bridging the gap between core p5.js code and strands code.

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

Feature enhancement details

As mentioned in #7849, GLSL has a built in function mix, which does the same operation as p5.js' lerp. We want to alias mix as lerp so that it can be used in shaders, as part of an effort to make more p5.js functions work as expected within p5.strands

Metadata

Metadata

Type

No type

Projects

Status

Completed

Relationships

None yet

Development

No branches or pull requests

Issue actions