Skip to content

Clear() Method Description Page confusing #544

@ptr2null

Description

@ptr2null

Issue description

The description tells the reader that this method clears the pixel within a buffer. That seems not be actually correct: This method just set the background to (0,0,0,0), so fully reset the background (Source Code of PGraphics.java, current version). It does nothing else, so drawn lines or points were not erased and can still be seen.

URL(s) of affected page(s)

https://processing.org/reference/clear_.html

Proposed fix

Perhaps the authors of the description wanted to implement the written description and just have forgotten it or they forgot to update the description. Either way, it should be corrected.

Metadata

Metadata

Assignees

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