I've been trying to wrap my head around differential equations and vector calculus and things, and I was having trouble checking my work (WolframAlpha can be a bit annoying). So I made this! Modify dx() dy() to put in your own equations (so long as they're in the right form...)
Anyway, mouseX and mouseY set x0 and y0, press q to zoom out and e to zoom in. The whole thing looks MUCH better in the newer versions of processing, with P2D improved.
It's plotting y' = (y-x)/(ysiny), which has no explicit solution (probably no implicit one either).
Happy belated mother's day! Yes, it was a holiday invented for the benefit of card companies, but that doesn't make it any less important. This is a little game I threw together for my mom. I was pressed for time, but I am happy with the result. My mom seemed genuinely impressed with it. I think her high score was something like 15,000.
I feel like I should say something about my age. I'm 13 years old, which may explain for my lack of professionalism in my code & stuff. I've kept quiet about that because I like to have people judge me on the quality of my work, not my age.
Press mouse, then move it a little ways away to start again.
I've noticed that the follower will become very happy when it reaches it's target, it does a little dance when it gets there. Or at least what it thinks is a dance. So don't make it feel bad. Also, try clicking, moving the mouse around, then keep it in one position. The follower will desperately try to keep on track. Generally, once the follower gets close enough to you, it will go into "sneaky" mode.
This is a tweak of Benjamen's "caterpillar" sketch, go there for an explanation.
I first started programming in processing on rainy April days. It rained today, and it reminded me of about a year ago when I really started to like programming. I enjoy the tranquility of grey, rainy days. This sketch is all I really wanted it to be. It is pretty simple, but I like it like that.
No UI for now.
If you get the right flow field, you may be able to see a drop go upwards, and get very large. This was not intended, but I think it can be pretty interesting.
Credit for the algorithm goes to Scott Draves, this is based off of his paper on fractal flames: http://flam3.com/flame.pdf
This has nothing to do with gravity, or the number 9000. I just like the name. This is a fractal flame generator!
Wait until the little loading bar reaches the end of the screen, and an image should appear. I used 18 of Scott's transformations from the appendix in his paper, and they create fantastic visuals. I made about 2600 of these at a resolution of 2048x2048 pixels, and I enjoy looking through them and picking out the especially nice ones.
Even more blobs! Partially inspired by Harukit's shining particle code, the blobs are attracted to the mouse.
Press mouse to slow particles.
Press 'p' to toggle posterization.
Press any other key to change colors.
A worm, building a landscape by "tunneling" all over it, raising and lowering the terrain. Press any key to skip forwards 500 iterations. Somewhat like the sandworms in "Dune" by Frank Herbert, except for the rainbows and strange fading trails.
I've added a few more things onto the attractor...
-The upper left corner now has information about the formulas used in the attractor and the values of the variables in the equation.
-I've allowed editing of all variables in the attractor: a, b, c, and d. This is done by pressing any key. Don't forget to focus the application by clicking on it first.
-I also changed the way the attractor is rendered. It is done in low quality when the mouse is moving, but when the mouse is stationary, it starts to create a better looking image.
With a nice kind of "Star Trek science readout" theme to it, this program does absolutely nothing. Press the mouse to attract the tachyon particles back to the flux capacitor. Works much better in OPENGL. Download and change the P3D to OPENGL for the full effect.
An extension of my previous "Roots" program. I've been seeing a lot of this growing swirly lines kind of idea lately, so I figured I would make one too. Click to make a new vine, and press c to change the color. Hold down the mouse for a neat effect.
A Mandelbrot/Julia Set explorer based on the equation z=z^2+c (or z=z^3+c), with 200 iterations.
p/o-Zoom in/out, respectively.
m-Toggle Mandelbrot/Julia Set (the location on the Mandelbrot Set will be turned into the parameters for the Julia Set, and vice-versa).
ijkl-Change parameters for the Julia Set.
t-Toggle between z=z^2+c and z=z^3+c.
A sketch inspired by Logarithm Dynamics by Kof and uses the clever idea of implementing sin() into the color from BlueThen's Circus Fluid.
Press the left mouse button to warp the grid towards the cursor, press the right mouse button to warp the gird away from the cursor.
An extension of my extension of my sketch "blobbing objects", this time with different meatball blobbing techniques. (Way to get mode on thumbnail: press c, then 3, then b)
1-sets it to mode 1.
2-sets it to mode 2.
(etc. up to 5)
c-toggles color mode (HSB or RGB)
b-toggles a crappy blur I built in
A simple tool for visualizing fractals
wasd-Change fractal generation defaults.
z/x-Zoom in/out, respectively.
f-Turns on wireframe.
Mouse position determines camera rotation, left mouse button adds an iteration, right mouse button subtracts a generation.
A crazy particle fractal program, branch-like minifractals sticking out of the particles, and lines in between particles if they are close enough. Interesting enough. Press any key to stop erasing the fractals, (they are there) and press the mouse to move the particles around.
wasd-Moves around the landscape.
z/x-Zooms in/out, respectively.
c/v-Changes noise scale.
b/n-Changes the Z offset (part of the generation of the terrain).
o/p-Changes speed of terrain reformation.
r-Restores all defaults.
Something resembling my previous sketch, this one moves by itself and makes contour-like lines as well. Clicking the mouse does nothing, press 1 to go to mode 1, and 2 to go to mode 2. Press any other key to reposition the particles.
An extension of my "Blobbing Objects" sketch, this time with a slightly different blob effect and multiple particles to blob. Click in the same place multiple times to get it started.
'c'-Creates new random color pallet.
'1'-Sets the sim into mode 1.
'2'-Sets the sim into mode 2.
'3'-Sets the sim into mode 3.
Controls: Mouse pressed stops the lines from spiraling inward, and stops showing their paths. Mouse not pressed sends the lines spiraling inward. At first let the mouse hold still in the center for a few seconds, then start. Also try holding down the mouse and moving it around the screen a bit, and then releasing the mouse and hold it perfectly still, watching what happens. The code is relatively easy to figure out, it's a particle system. Enjoy.
MousePressed shakes the particles around a bit and attracts them to your mouse,
q shows the particle paths and stop them from jiggling, and any other key divides the particle's velocities by 1.02.
This is a sort of fractaly terrain generator. I may upload an actual fractal terrain generator at some time, but I am still working on that. Sorry about the lag; HTML5 does not seem to have the same power as processing itself.
Controls: The mouse controls the zoom, W smooths out the landscape, and any other key generates an entirely new landscape. Don't forget to click on the program to focus it.