reuse code trough java files.
in
Programming Questions
•
3 years ago
K I'll try to explain things not as confused as i am.
I've wrote two littles functions that draw a basic square grid.
One function choose the coordinates system (ala processing either CENTER or CORNER).
And the other one just set the vertices in space.
What I'd like is reuse this code in several processing sketches.
Later, I'd like to write a custom library but for now i can't install eclipse, so i thought maybe using a java file would be the solution ? And then add that file to sketches.
I'm not sure how to do that what would be your suggestion ?
I hope i'm not confusing if so just let me know.
O.
I've wrote two littles functions that draw a basic square grid.
One function choose the coordinates system (ala processing either CENTER or CORNER).
And the other one just set the vertices in space.
What I'd like is reuse this code in several processing sketches.
Later, I'd like to write a custom library but for now i can't install eclipse, so i thought maybe using a java file would be the solution ? And then add that file to sketches.
I'm not sure how to do that what would be your suggestion ?
I hope i'm not confusing if so just let me know.
O.
1