Skip to content

🐛 Typo in pygame.math.lerp documentation formula #3521

Open
@mlhadi

Description

@mlhadi

Environment:

N/A. This is a documentation issue only. No code execution involved.

Current behavior:

The documentation for pygame.math.lerp currently states the formula as a * value + (1 - value) * b, which appears to be incorrect.

Expected behavior:

The formula should read as b * value + (1 - value) * a, which matches the standard linear interpolation formula and avoids confusion for documentation readers.

Screenshots

No screenshots provided (documentation text issue).

Steps to reproduce:

  1. Visit pygame.math.lerp documentation
  2. Observe the formula provided in the documentation.

Test code

Not applicable (documentation issue).

Stack trace/error output/other error logs

Not applicable.

Additional environment details:

N/A

Other environment details, not included in print_debug_info(), that might help:

  • Relevant hardware: N/A (documentation only)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions