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

documentation: maybe we should remove mentions to "data" folder? #298

Closed villares closed 1 year ago

villares commented 1 year ago

I was looking at the create_font() reference and then I did a quick search: https://py5coding.org/search.html?q=%27%22data%22+folder%27#

Unless I'm mistaken, in py5 you don't need a "data" folder by default, right?

hx2A commented 1 year ago

I would expect this to be the same as it is for Processing...is it not? I am pretty sure the data folder is required for loading shaders. There might be some places where it is mentioned but isn't actually required though.

villares commented 1 year ago

Hmmm, I tried a quick test with create_font() and it looks like it can find the font both inside the "data" folder and on the same folder as the sketch. I was surprised, I assumed that in py5 things would only work like "standard" Python...

hx2A commented 1 year ago

Does that work for Processing also? Can Processing's create_font() find a font in the data folder and in the data folder's parent?

villares commented 1 year ago

And the answer was also a surprise for me! It works both ways!

image

hx2A commented 1 year ago

And the answer was also a surprise for me! It works both ways!

Great! That's a happy surprise.

Is there anything that needs to be done here? Can we close this issue?

villares commented 1 year ago

yeah, I think we can close this, thanks for the insightful questions! "hx2A, the Socratic maintainer"