Skip to content

Remove custom "save" functions from Javascript sketch #9

@haschdl

Description

@haschdl

Throughout the sketches both @haschdl and @regisfrias make extensive use of the save() and/or saveFrame() functions.
In HTML5, one can simply right-click on a canvas and choose "Save image".

if (saveFile) {
const fileName =
'saved-png/' +
year() +
'-' +
month() +
'-' +
day() +
'-' +
hour() +
'-' +
minute() +
'-' +
second() +
'-telhado.png';
save(fileName);
saveFile = false;
}

I suggest we remove the "save" operations from sketches, unless it has a aesthetic reason. This would improve legibility of the code and reduce lines of code considerably.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions