Bubble Universe

Share your advanced PureBasic knowledge/code with the community.
User avatar
JHPJHP
Addict
Addict
Posts: 2250
Joined: Sat Oct 09, 2010 3:47 am

Bubble Universe

Post by JHPJHP »

The following bit of code came from a link posted by BarryG.

I believe the original code was written by Paul Dunn ~developer of SpecBas.

If you don't feel like running the code, see the following online demo: Bubble Universe
Old Skool Effects & Other Stuff
Last edited by JHPJHP on Wed Nov 06, 2024 5:19 pm, edited 9 times in total.

If you're not investing in yourself, you're falling behind.

My PureBasic StuffFREE STUFF, Scripts & Programs.
My PureBasic Forum ➤ Questions, Requests & Comments.
User avatar
Mijikai
Addict
Addict
Posts: 1517
Joined: Sun Sep 11, 2016 2:17 pm

Re: Bubble Universe

Post by Mijikai »

Thats genious, thanks for sharing :) 8)
User avatar
idle
Always Here
Always Here
Posts: 5836
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Bubble Universe

Post by idle »

wow that's a beauty, it's a bit like all the trajectories in nova attractor happening all at once.
User avatar
mk-soft
Always Here
Always Here
Posts: 6202
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Bubble Universe

Post by mk-soft »

Nice :D
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
STARGÅTE
Addict
Addict
Posts: 2226
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Bubble Universe

Post by STARGÅTE »

Awesome, such small code that adorable graphic.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
BarryG
Addict
Addict
Posts: 4123
Joined: Thu Apr 18, 2019 8:17 am

Re: Bubble Universe

Post by BarryG »

Nice!
User avatar
JHPJHP
Addict
Addict
Posts: 2250
Joined: Sat Oct 09, 2010 3:47 am

Re: Bubble Universe

Post by JHPJHP »

Hi Mijikai, idle, mk-soft, STARGÅTE, BarryG,

You've got to love math.

Whenever I find a gem like this, I'm humbled by what some programmers are able to do with so little code.
A version of the algorithm was probably written at a time when static RAM was thought about in KB; my first computer was the VIC-20.

An updated version can be found in Windows Services & Other Stuff
- \Other_Stuff\OldSkoolEffects\SpecBAS\Bubble_Universe.pb
Last edited by JHPJHP on Fri Jan 13, 2023 3:11 am, edited 6 times in total.

If you're not investing in yourself, you're falling behind.

My PureBasic StuffFREE STUFF, Scripts & Programs.
My PureBasic Forum ➤ Questions, Requests & Comments.
User avatar
Sicro
Enthusiast
Enthusiast
Posts: 559
Joined: Wed Jun 25, 2014 5:25 pm
Location: Germany
Contact:

Re: Bubble Universe

Post by Sicro »

Very impressive indeed :shock: 8)

@JHPJHP: Thanks for the translation to PB.

Here is the corresponding forum thread.

There are two more variants to look at directly: (Press the play button)
Image
Why OpenSource should have a license :: PB-CodeArchiv-Rebirth :: Pleasant-Dark (syntax color scheme) :: RegEx-Engine (compiles RegExes to NFA/DFA)
Manjaro Xfce x64 (Main system) :: Windows 10 Home (VirtualBox) :: Newest PureBasic version
User avatar
Caronte3D
Addict
Addict
Posts: 1355
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Bubble Universe

Post by Caronte3D »

Is fascinating the result with such a little code :shock:
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Bubble Universe

Post by IceSoft »

JHPJHP wrote: Fri Jan 06, 2023 7:06 am
2. Closely matches the original version; found on GitHub.
can you post the link too?
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
JHPJHP
Addict
Addict
Posts: 2250
Joined: Sat Oct 09, 2010 3:47 am

Re: Bubble Universe

Post by JHPJHP »

Hi Sicro,

You are most welcome and thank you for posting the additional links.

----------------------

Hi Caronte3D,

I had the same reaction.

----------------------

Updated:
- modified the example in the first post; second post was also updated, based on a previous comment.

If you're not investing in yourself, you're falling behind.

My PureBasic StuffFREE STUFF, Scripts & Programs.
My PureBasic Forum ➤ Questions, Requests & Comments.
Post Reply