Override core function

edited July 2017 in How To...

Is it possible to create a function that overrides a P5 core function? I'd like to modify how some of the internal stuff works, but without compiling a separate version of the entire P5 core.

More specifically, I'd like to change how line breaks happen when the text() functions specifies a width and height, by adding additional characters that can cause a break (such as / and |).

Here's the function in question: https://github.com/processing/processing/blob/master/core/src/processing/core/PGraphics.java#L4831

Is this possible? Am I approaching this the right way?

Answers

Sign In or Register to comment.