Skip to content

Do you think angleMode() should apply to both Canvas and any p5.Graphics on it? #8290

@imrinahru

Description

@imrinahru

Topic

Recently I filed a bug on pixelDensity() in p5 2.x. Unlike in 1.x, setting pixelDensity(n) only changes that of the main canvas.
#8289

However, when it comes to angleMode(), both 1.x and 2.x set only for the main canvas, not for individual p5.Graphics.
https://editor.p5js.org/imrinahru/sketches/9UGvR304w

I'm inclined to make an enhancement where angleMode() will by default apply to both Canvas and p5.Graphics. It matches the same behavior as pixelDensity, having consistent design.

However, I'm interested in learning how other people think about this proposal, whether or not it's by design or could be changed.

In addition, are there other functions that we should think about when aligning the behavior?

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