py5coding / py5generator

Meta-programming project that creates the py5 library code.
https://py5coding.org/
GNU General Public License v3.0
52 stars 13 forks source link

Remove X, Y, and Z constants from Sketch and Py5Graphics #105

Closed hx2A closed 2 years ago

hx2A commented 2 years ago

They aren't useful and they trip up Thonny users or anyone using imported mode. Nobody can use them as variable names.

hx2A commented 2 years ago

There more constants that I believe are only used internally to Processing. These all deserve a closer look to see if they should really be included in py5:

OTHER WINDOWS MACOS LINUX TIFF TARGA JPEG GIF DEFAULT_WIDTH DEFAULT_HEIGHT EXTERNAL_MOVE EXTERNAL_STOP HINT_COUNT CHATTER COMPLAINT PROBLEM

hx2A commented 2 years ago

A few more in Py5Graphics only:

ALPHA_MASK RED_MASK GREEN_MASK BLUE_MASK

hx2A commented 2 years ago

So what's going on here is when I first created the data files that py5 uses to determine which of Processing's public variables and methods should be made available in py5, I had to make a lot of decisions quickly about what should be included. While writing the reference documentation I had the opportunity to review all of those decisions about the methods only. The constants don't have documentation so they did not get the same careful review. I went through all of them now and made the necessary fixes to remove constants that should not be there.