Skip to content

Add WebGL visual regression tests for core transform functions #8464

@aashu2006

Description

@aashu2006

Topic

Description

WebGL transform functions (translate, rotate, and scale) currently do not have dedicated visual regression coverage in the dev-2.0 branch.

While these transforms are used throughout existing tests, there are no focused visual tests whose primary purpose is to validate their behavior in WebGL mode.

Proposal

Add a small, low-risk set of visual regression tests that verify basic transform behavior in WebGL:

  • translate() moves shapes correctly along the x and y axes
  • rotate() applies z-axis rotation correctly
  • scale() uniformly scales geometry

Scope

  • Visual tests only
  • No rendering, engine, or API changes
  • No refactoring of existing tests

Goal

Provide baseline visual regression protection for fundamental WebGL transform operations and reduce the risk of future regressions during p5.js 2.0 development.

Initial Tests Planned

  • translate() moves shapes in x and y axes
  • rotate() rotates shapes around z-axis
  • scale() uniformly scales shapes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions