I want to be able to use the mouse to place circles onto the poster to sort of have a punching a hole through the black layer effect. My thinking was that I could have a white background, black text, and then a transparent black rectangle over the text… i would then have a circle at the mouse x & y location which will blend with the transparent rectangle to show the text.
This is what I have so far to show my thought process however I wasnt really at all getting what i wanted to happen. Any help to send me in the right direction is appreciated.
Thank you! with a few adjustments i was able to get it to exactly what i wanted.
I am new to processing and dont have a background in any other coding languages so i was wondering if you could explain some of the syntax in your code…
i know of arrays with [ ] but i have never seen < >, whats that mean?
i also know of making classes, however i have never seen public class, what does “public” mean in this context?
Keyword used to provide other classes access the fields and methods within a class. The public keyword is used before a field or method that you want to make available. In Processing, all fields and methods are public unless otherwise specified by the private keyword.
This keyword is an essential part of Java programming and is not usually used with Processing. Consult a Java language reference or tutorial for more information.
It isn’t required in the Processing dialect, as written in .pde files and run from PDE or processing-java. This has been true since the first Processing in 2001.
If you browse through the reference, and examples, for instance on on objects and classes, you will notice that none of them use public.
If you include a .java file in a Processing sketch, it must use valid Java syntax – then public is required in that file. Also, if you use Processing as a library in a Java applications – e.g. in Eclipse – then again public is required.