Skip to content

SVG library documentation: mousePressed() comment incorrectly says "keypress" #1292

@hxrshxz

Description

@hxrshxz

Most appropriate sub-area of Processing 4?

Documentation

Processing version

4.0

Operating system

4.0

Bug description

In the official SVG library reference (https://processing.org/reference/libraries/svg/index.html), the "Single Frame from an Animation" example has an inconsistency:

The comment says:
// Use a keypress so thousands of files aren't created

But the implementation uses:
void mousePressed() {
record = true;
}

Steps to reproduce this

visit the Website https://processing.org/reference/libraries/svg/index.html and
scroll to this section ->
Single Frame from an Animation (With Screen Display)

Image

snippet

No response

Additional context

No response

Would you like to work on the issue?

Yes, I’d like to help with this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions