Gravity Art Megathread

What did you draw?
DavidAllyn68
Posts: 28
Joined: Thu Aug 01, 2013 2:28 pm

Re: Gravity Art Megathread

Post by DavidAllyn68 » Mon Oct 28, 2013 8:19 pm

Hey guys, hope all is well. Here's a celtic knot thingy... :)

Code: Select all

Gravity Fun at TestTubeGames: [ForceG: -2,Qual: 1,Zoom: 0.15,xSet: 0,ySet: 0],[x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 300000], [x0: 600,y0: 0,vx: 0,vy: -9,t0: 0,who: 2,m: 10], [x0: 374.09388112,y0: 469.09888948,vx: 7.03648334,vy: -5.61140822,t0: 0,who: 2,m: 10], [x0: -133.51256037,y0: 584.95674731,vx: 8.77435121,vy: 2.00268841,t0: 0,who: 2,m: 10], [x0: -540.58132074,y0: 260.33024347,vx: 3.90495365,vy: 8.10871981,t0: 0,who: 2,m: 10], [x0: -540.58132074,y0: -260.33024347,vx: -3.90495365,vy: 8.10871981,t0: 0,who: 2,m: 10], [x0: -133.51256037,y0: -584.95674731,vx: -8.77435121,vy: 2.00268841,t0: 0,who: 2,m: 10], [x0: 374.09388112,y0: -469.09888948,vx: -7.03648334,vy: -5.61140822,t0: 0,who: 2,m: 10], [x0: 725,y0: 0,vx: 0,vy: -10.7,t0: 0,who: 2,m: 10], [x0: 452.03010635,y0: 566.82782479,vx: 8.36559686,vy: -6.67134088,t0: 0,who: 2,m: 10], [x0: -161.32767712,y0: 706.82273633,vx: 10.43172866,vy: 2.38097399,t0: 0,who: 2,m: 10], [x0: -653.20242923,y0: 314.56571086,vx: 4.64255601,vy: 9.64036689,t0: 0,who: 2,m: 10], [x0: -653.20242923,y0: -314.56571086,vx: -4.64255601,vy: 9.64036689,t0: 0,who: 2,m: 10], [x0: -161.32767712,y0: -706.82273633,vx: -10.43172866,vy: 2.38097399,t0: 0,who: 2,m: 10], [x0: 452.03010635,y0: -566.82782479,vx: -8.36559686,vy: -6.67134088,t0: 0,who: 2,m: 10], [x0: 850,y0: 0,vx: 0,vy: -14.1,t0: 0,who: 2,m: 10], [x0: 529.96633158,y0: 664.5567601,vx: 11.0238239,vy: -8.79120621,t0: 0,who: 2,m: 10], [x0: -189.14279386,y0: 828.68872535,vx: 13.74648356,vy: 3.13754517,t0: 0,who: 2,m: 10], [x0: -765.82353772,y0: 368.80117825,vx: 6.11776072,vy: 12.70366104,t0: 0,who: 2,m: 10], [x0: -765.82353772,y0: -368.80117825,vx: -6.11776072,vy: 12.70366104,t0: 0,who: 2,m: 10], [x0: -189.14279386,y0: -828.68872535,vx: -13.74648356,vy: 3.13754517,t0: 0,who: 2,m: 10], [x0: 529.96633158,y0: -664.5567601,vx: -11.0238239,vy: -8.79120621,t0: 0,who: 2,m: 10], [x0: 975,y0: 0,vx: 0,vy: -19.2,t0: 0,who: 2,m: 10], [x0: 607.90255681,y0: 762.28569541,vx: 15.01116446,vy: -11.9710042,t0: 0,who: 2,m: 10], [x0: -216.95791061,y0: 950.55471438,vx: 18.71861591,vy: 4.27240193,t0: 0,who: 2,m: 10], [x0: -878.4446462,y0: 423.03664564,vx: 8.33056779,vy: 17.29860226,t0: 0,who: 2,m: 10], [x0: -878.4446462,y0: -423.03664564,vx: -8.33056779,vy: 17.29860226,t0: 0,who: 2,m: 10], [x0: -216.95791061,y0: -950.55471438,vx: -18.71861591,vy: 4.27240193,t0: 0,who: 2,m: 10], [x0: 607.90255681,y0: -762.28569541,vx: -15.01116446,vy: -11.9710042,t0: 0,who: 2,m: 10], 

DavidAllyn68
Posts: 28
Joined: Thu Aug 01, 2013 2:28 pm

Re: Gravity Art Megathread

Post by DavidAllyn68 » Thu Oct 31, 2013 4:41 pm

60 body Spira Gira...

Code: Select all

Gravity Fun at TestTubeGames: [ForceG: -2,Qual: 1,Zoom: 0.2,xSet: 0,ySet: 0],[x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 180000], [x0: 1500,y0: 0,vx: 0,vy: -4,t0: 0,who: 2,m: 2], [x0: 1491.78284305,y0: 156.7926949,vx: 0.41811385,vy: -3.97808758,t0: 0,who: 2,m: 2], [x0: 1467.2214011,y0: 311.86753623,vx: 0.83164676,vy: -3.9125904,t0: 0,who: 2,m: 2], [x0: 1426.58477444,y0: 463.52549156,vx: 1.23606798,vy: -3.80422607,t0: 0,who: 2,m: 2], [x0: 1370.31818646,y0: 610.10496461,vx: 1.62694657,vy: -3.65418183,t0: 0,who: 2,m: 2], [x0: 1299.03810568,y0: 750,vx: 2,vy: -3.46410162,t0: 0,who: 2,m: 2], [x0: 1213.52549156,y0: 881.67787844,vx: 2.35114101,vy: -3.23606798,t0: 0,who: 2,m: 2], [x0: 1114.71723822,y0: 1003.69590954,vx: 2.67652243,vy: -2.9725793,t0: 0,who: 2,m: 2], [x0: 1003.69590954,y0: 1114.71723822,vx: 2.9725793,vy: -2.67652243,t0: 0,who: 2,m: 2], [x0: 881.67787844,y0: 1213.52549156,vx: 3.23606798,vy: -2.35114101,t0: 0,who: 2,m: 2], [x0: 750,y0: 1299.03810568,vx: 3.46410162,vy: -2,t0: 0,who: 2,m: 2], [x0: 610.10496461,y0: 1370.31818646,vx: 3.65418183,vy: -1.62694657,t0: 0,who: 2,m: 2], [x0: 463.52549156,y0: 1426.58477444,vx: 3.80422607,vy: -1.23606798,t0: 0,who: 2,m: 2], [x0: 311.86753623,y0: 1467.2214011,vx: 3.9125904,vy: -0.83164676,t0: 0,who: 2,m: 2], [x0: 156.7926949,y0: 1491.78284305,vx: 3.97808758,vy: -0.41811385,t0: 0,who: 2,m: 2], [x0: 0,y0: 1500,vx: 4,vy: 0,t0: 0,who: 2,m: 2], [x0: -156.7926949,y0: 1491.78284305,vx: 3.97808758,vy: 0.41811385,t0: 0,who: 2,m: 2], [x0: -311.86753623,y0: 1467.2214011,vx: 3.9125904,vy: 0.83164676,t0: 0,who: 2,m: 2], [x0: -463.52549156,y0: 1426.58477444,vx: 3.80422607,vy: 1.23606798,t0: 0,who: 2,m: 2], [x0: -610.10496461,y0: 1370.31818646,vx: 3.65418183,vy: 1.62694657,t0: 0,who: 2,m: 2], [x0: -750,y0: 1299.03810568,vx: 3.46410162,vy: 2,t0: 0,who: 2,m: 2], [x0: -881.67787844,y0: 1213.52549156,vx: 3.23606798,vy: 2.35114101,t0: 0,who: 2,m: 2], [x0: -1003.69590954,y0: 1114.71723822,vx: 2.9725793,vy: 2.67652243,t0: 0,who: 2,m: 2], [x0: -1114.71723822,y0: 1003.69590954,vx: 2.67652243,vy: 2.9725793,t0: 0,who: 2,m: 2], [x0: -1213.52549156,y0: 881.67787844,vx: 2.35114101,vy: 3.23606798,t0: 0,who: 2,m: 2], [x0: -1299.03810568,y0: 750,vx: 2,vy: 3.46410162,t0: 0,who: 2,m: 2], [x0: -1370.31818646,y0: 610.10496461,vx: 1.62694657,vy: 3.65418183,t0: 0,who: 2,m: 2], [x0: -1426.58477444,y0: 463.52549156,vx: 1.23606798,vy: 3.80422607,t0: 0,who: 2,m: 2], [x0: -1467.2214011,y0: 311.86753623,vx: 0.83164676,vy: 3.9125904,t0: 0,who: 2,m: 2], [x0: -1491.78284305,y0: 156.7926949,vx: 0.41811385,vy: 3.97808758,t0: 0,who: 2,m: 2], [x0: -1500,y0: 0,vx: 0,vy: 4,t0: 0,who: 2,m: 2], [x0: -1491.78284305,y0: -156.7926949,vx: -0.41811385,vy: 3.97808758,t0: 0,who: 2,m: 2], [x0: -1467.2214011,y0: -311.86753623,vx: -0.83164676,vy: 3.9125904,t0: 0,who: 2,m: 2], [x0: -1426.58477444,y0: -463.52549156,vx: -1.23606798,vy: 3.80422607,t0: 0,who: 2,m: 2], [x0: -1370.31818646,y0: -610.10496461,vx: -1.62694657,vy: 3.65418183,t0: 0,who: 2,m: 2], [x0: -1299.03810568,y0: -750,vx: -2,vy: 3.46410162,t0: 0,who: 2,m: 2], [x0: -1213.52549156,y0: -881.67787844,vx: -2.35114101,vy: 3.23606798,t0: 0,who: 2,m: 2], [x0: -1114.71723822,y0: -1003.69590954,vx: -2.67652243,vy: 2.9725793,t0: 0,who: 2,m: 2], [x0: -1003.69590954,y0: -1114.71723822,vx: -2.9725793,vy: 2.67652243,t0: 0,who: 2,m: 2], [x0: -881.67787844,y0: -1213.52549156,vx: -3.23606798,vy: 2.35114101,t0: 0,who: 2,m: 2], [x0: -750,y0: -1299.03810568,vx: -3.46410162,vy: 2,t0: 0,who: 2,m: 2], [x0: -610.10496461,y0: -1370.31818646,vx: -3.65418183,vy: 1.62694657,t0: 0,who: 2,m: 2], [x0: -463.52549156,y0: -1426.58477444,vx: -3.80422607,vy: 1.23606798,t0: 0,who: 2,m: 2], [x0: -311.86753623,y0: -1467.2214011,vx: -3.9125904,vy: 0.83164676,t0: 0,who: 2,m: 2], [x0: -156.7926949,y0: -1491.78284305,vx: -3.97808758,vy: 0.41811385,t0: 0,who: 2,m: 2], [x0: 0,y0: -1500,vx: -4,vy: 0,t0: 0,who: 2,m: 2], [x0: 156.7926949,y0: -1491.78284305,vx: -3.97808758,vy: -0.41811385,t0: 0,who: 2,m: 2], [x0: 311.86753623,y0: -1467.2214011,vx: -3.9125904,vy: -0.83164676,t0: 0,who: 2,m: 2], [x0: 463.52549156,y0: -1426.58477444,vx: -3.80422607,vy: -1.23606798,t0: 0,who: 2,m: 2], [x0: 610.10496461,y0: -1370.31818646,vx: -3.65418183,vy: -1.62694657,t0: 0,who: 2,m: 2], [x0: 750,y0: -1299.03810568,vx: -3.46410162,vy: -2,t0: 0,who: 2,m: 2], [x0: 881.67787844,y0: -1213.52549156,vx: -3.23606798,vy: -2.35114101,t0: 0,who: 2,m: 2], [x0: 1003.69590954,y0: -1114.71723822,vx: -2.9725793,vy: -2.67652243,t0: 0,who: 2,m: 2], [x0: 1114.71723822,y0: -1003.69590954,vx: -2.67652243,vy: -2.9725793,t0: 0,who: 2,m: 2], [x0: 1213.52549156,y0: -881.67787844,vx: -2.35114101,vy: -3.23606798,t0: 0,who: 2,m: 2], [x0: 1299.03810568,y0: -750,vx: -2,vy: -3.46410162,t0: 0,who: 2,m: 2], [x0: 1370.31818646,y0: -610.10496461,vx: -1.62694657,vy: -3.65418183,t0: 0,who: 2,m: 2], [x0: 1426.58477444,y0: -463.52549156,vx: -1.23606798,vy: -3.80422607,t0: 0,who: 2,m: 2], [x0: 1467.2214011,y0: -311.86753623,vx: -0.83164676,vy: -3.9125904,t0: 0,who: 2,m: 2], [x0: 1491.78284305,y0: -156.7926949,vx: -0.41811385,vy: -3.97808758,t0: 0,who: 2,m: 2], 

User avatar
testtubegames
Site Admin
Posts: 1139
Joined: Mon Nov 19, 2012 7:54 pm

Re: Gravity Art Megathread

Post by testtubegames » Mon Nov 04, 2013 1:23 pm

I could *not* look away from that spiral. Mesmerizing.......... (eyes glazed over staring at screen....)

In other news -- note to self -- deal more gracefully with lag in the update.

DavidAllyn68
Posts: 28
Joined: Thu Aug 01, 2013 2:28 pm

Re: Gravity Art Megathread

Post by DavidAllyn68 » Mon Nov 04, 2013 9:02 pm

No worries... life gets in the way sometimes. I'm just glad you built something that I can play around with. :D (Imagine that spiral with different colors or velocity-sensitive line brightness/saturation)

exfret
Posts: 585
Joined: Sun Jul 28, 2013 8:40 pm

Re: Gravity Art Megathread

Post by exfret » Sun Nov 10, 2013 9:14 pm

Colors dependent upon velocity? That would be awesome! We could also have colors dependent upon acceleration, or distance to the closest object, or probability of the planet supporting life, or... I'm getting carried away... :P
Nobody ever notices my signature. ):

DavidAllyn68
Posts: 28
Joined: Thu Aug 01, 2013 2:28 pm

Re: Gravity Art Megathread

Post by DavidAllyn68 » Mon Nov 11, 2013 1:55 pm

oooo. hue dependent on proximity to another body! I could do some pretty cool stuff with that!

exfret
Posts: 585
Joined: Sun Jul 28, 2013 8:40 pm

Re: Gravity Art Megathread

Post by exfret » Mon Nov 11, 2013 6:28 pm

DavidAllyn68 wrote:oooo. hue dependent on proximity to another body! I could do some pretty cool stuff with that!
Really? What are you thinking of?
Nobody ever notices my signature. ):

DavidAllyn68
Posts: 28
Joined: Thu Aug 01, 2013 2:28 pm

Re: Gravity Art Megathread

Post by DavidAllyn68 » Wed Nov 13, 2013 7:20 pm

Either based on "attraction" or distance, as one body gets closer to another body, it turns blue (or one hue) the further away it gets from any body it turns red (or another hue). If you combine that with "brightness" or saturation based on the velocity of the body (i.e. the faster a body goes, the lighter or whiter it gets -- the slower it goes the darker or more saturated it gets) -- something like that.

exfret
Posts: 585
Joined: Sun Jul 28, 2013 8:40 pm

Re: Gravity Art Megathread

Post by exfret » Thu Nov 14, 2013 9:13 am

Oh, and here's something even cooler:
-Mass or velocity or the acceleration of any object or the gravitational constant or force law changing based on the distance between two bodies, the acceleration of a body, the gravitational force acting on a body, the velocity of a body, the area or perimeter of the triangle made by three bodies, the... oh, woops, getting carried away again.
-OH, we could have hyperbolic geometry in the gravity simulator to represent the hyperbolic geometry in Einstein's theory of general relativity!!! We could also have circular geometry, or cubic geometry, or it could be so many other geometries, except I can't think of any off the top of my head.
Nobody ever notices my signature. ):

User avatar
testtubegames
Site Admin
Posts: 1139
Joined: Mon Nov 19, 2012 7:54 pm

Re: Gravity Art Megathread

Post by testtubegames » Mon Dec 16, 2013 12:32 am

exfret wrote:...the distance between two bodies, the acceleration of a body, the gravitational force acting on a body, the velocity of a body, the area or perimeter of the triangle made by three bodies, the... oh, woops, getting carried away again.
Uh oh, exfret is overclocking again!

Interesting stuff with color changing. I'd like to give the planets selectable colors ("this one will be red, this one green")... which might not work perfectly with this idea. But maybe I could make it a toggle on/off option.

Post Reply