SourceForge.net Logo Home | Download | Submit | Screenshots | FAQ | SF Project Page | JUDO Help | Contact

View a Program

To run this program in JUDO, select the Program Code with your mouse, click the Edit menu of your browser and Copy. Then click in the code area of JUDO, click the Edit menu of JUDO and then Paste. Then Run the program.

Author Name:Edac Leinad
Program Name:Gravity Force Field Calculator
Program Description:This program was modified from Thomas Dunn's program, Gravity Ball (http://judo.sourceforge.net/programs/viewProgram.php?id=4)

It now will display an image (in grayscale) showing the magnitude of the 2 objects's gravity. It is a pretty cool program.

=======================================INSTRUCTIONS
For first time run, run the program. Press spacebar,
and the program will display what is has calculated
so far. It might take a long time depending on your
accuracies, and system specs, but it ends up with a
pretty cool image. (Don't resize/minimize/cover the
JUDOApp Window, or else the image will be completely/
partially erased.

If you are not a first time run, then scroll down in the program
to the line that says

if (getKeyState(" ")) { // MOD BY EDAC LEINAD

inside void main(). Inside this you have a function called drawGravityField(). You can change the last 4 variables. the 100 is
the size of the image (don't go too high, you won't see much of an image). The false is stating that whiteToBlack = false, so make the
program go blackToWhite. (black low gravity, white intense gravity).
The 1.2, 1.2's are the x and y accuracies. Setting them equal to 1
will make the program balance speed and image quality, setting them
to something like 2 will make it faster, but loose image quality.
Best not to set this to too high, because again, you won't see much of an image. (feel free to experiment though). Using JUDO graphics,
I believe that 1 is the highest quality you can get.

So there you have it... Have fun!
 
Program Type:Graphics
Program Code:

Last Modified Sun Dec 22 07:25:00 UTC 2013
Thomas Dunn

Home | Download | Submit | Screenshots | FAQ | SF Project Page | JUDO Help | Contact