# Bubble Universe

**URL:** <https://forum.clockworkpi.com/t/bubble-universe/19907>\
**Category:** PicoCalc\
**Tags:** demo\
**Created:** [September 29, 2025, 8:11am UTC](https://forum.clockworkpi.com/t/bubble-universe/19907 "2025-09-29T08:11:16Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![n602\_na](https://avatars.discourse-cdn.com/v4/letter/n/f05b48/32.png) [@n602\_na](https://forum.clockworkpi.com/u/n602_na)\
**Post date:** [October 7, 2025, 12:07pm UTC](https://forum.clockworkpi.com/t/bubble-universe/19907/13 "2025-10-07T12:07:40Z")

</div>

I ported the lua version of Bubble Universe (Thank you, @maple) almost directly to Basic Compiler [Machikania](https://forum.clockworkpi.com/t/basic-compiler-machikania-type-p-for-picocalc/19271).

```auto
rem over clock_366MHz
system 51,14
system 50,366000000

usevar stp
w=320:n=150
stp=2
r#=PI#*2.0/float#(n)
x#=0:y#=0
t#=0
u#=0:v#=0

cls
while inkey()=0
  rem wait 3
  cls
  for i=0 to n-1 step stp
    for c=0 to n-1 step stp
      u#=sin#(float#(i)+y#)+sin#(r#*float#(i)+x#)
      v#=cos#(float#(i)+y#)+cos#(r#*float#(i)+x#)
      x#=u#+t#
      y#=v#
      palette 255,255*i/n,255*c/n,168
      pset int(u#*float#(n)/2)+w/2, int(y#*float#(n)/2)+w/2, 255
    next
  next
  t#=t#+0.1
wend

```

These are the results at [normal speed](https://x.com/n602_NA/status/1975524639490318752) and [overclocked (366MHz)](https://x.com/n602_NA/status/1975524978134294674).  
…[SPI also overclocked](https://x.com/n602_NA/status/1975722231998353910)( system 58,100000000 )

---

_[View the full topic](https://forum.clockworkpi.com/t/bubble-universe/19907)._
