Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 804 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 804 Bytes

PocketGalaxy

PocketGalaxy animated pixel effect

Powered By Lazarus (ObjectPascal)


Precompiled exe: https://github.com/turborium/PocketGalaxy/raw/main/PocketGalaxy.exe

scr

Maked by Lazarus(ObjectPascal) with love.
Also, see JavaScript version: https://github.com/turborium/PocketGalaxyJs and run online.


Inspired by article Complex beauty in a simple formula and comment by kipar with code:

RandSeed := 1;
for i := 1 to 100 do
begin
  x := random;
  y := random;
  color := Random(MaxLongint);
  for j := 1 to 1000 do
  begin
    pr2d_Pixel(x*1000,y*1000,color);
    x := Frac(x+cos(y));
    y := Frac(y+sin(x));
  end;
end;