Skip to content

angleMode not saved/restored by push/pop #5160

@bobcgausa

Description

@bobcgausa

Most appropriate sub-area of p5.js?

  • Accessibility (Web Accessibility)
  • Build tools and processes
  • Color
  • [X ] Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Friendly error system
  • Image
  • IO (Input/Output)
  • Localization
  • [X ] Math
  • Unit Testing
  • Typography
  • Utilities
  • WebGL
  • Other (specify if possible)

Details about the bug:

My library sets angleMode to degrees, which can have side effects if user has set it to radians.
You might say, ok reset to radians after use, but what if user had set to degrees?
Two fixes:
Have angleMode return previous angleMode so i can save and restore
or
Save/restore angleMode in push/pop

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions