We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am really new at processing but I am working on a code with a current particle system and want to add another system of particles as a background. How do I go about adding a second particle to an existing code without it effecting the current particle.
Any help at all would be greatly appreciated. I am trying to teach myself coding and just need to know the right direction to look.
Thanks,
Answers
If you wrote your ParticleSystem as a class, you'd just add a new instance of that class (probably with different parameters).
It's hard to help you without seeing the state of your code.
double comment
I'm using samples to patch together and try to teach myself from that as I said I am very new. Thanks for the reply here is the code.
Main Sketch Page.
Cleary I need to go back to the basics as your answer didn't really help me much.. I am just going to need to read up more and learn what it all means. I have three pages my main sketch, a particle, and a particle system. I don't even know how to go about adding the second particle or where(page) for that matter. I really appreciate your help.
Perhaps read (again?) How to format code and text for proper formatting of your code. Then edit your messages to make them readable.
Remove the useless backticks (only to be used for small
code fragments
), select your code and hit the C button (or Ctrl+O).i have formatted code. the first bit was too large to post as a single block but contained hundreds of lines that were commented out so i have deleted them.
you stand more chance of getting answers if your examples are concise and don't require the use of specialized libraries. and if your code is formatted correctly.
and please don't start duplicate (or triplicate) questions
(philho, the C button inserts the useless backticks if pressed at the wrong time or when the wrong thing is selected. it's annoying.)
well, it's basically about making two sketches into one.
the current sketch is number 1, the background particles are sketch #2.
you can start making #2 as a separate sketch
once #2 works, join #1 and #2
to do so in the new sketch #3
have all the classes from #1 & #2 (they must have different names)
join the two
setup
s so you have only one setup and one commandsize()
join the two
draw
shave the functions copied as well
;-)
Hello, I'm really sorry to bother you. I'm new here and this is my first approach to Processing. For an exam I have to make a prototype for an app and I would like to simulate it using processing. I was wondering if it's possible to divide the screen in two parts having different interactions. The interactive effects I'm trying to customize is this: http://processingjs.org/learning/basic/distance2d/ Do you know have to have two of them one under the other? Could anyone help me solving this? Thank you so much for everyone in advance Best
it is possible.
you can define two rects for upper and lower part
when you do something like drawing the circles just draw them only above the middle line....