Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/turborium/pocketgalaxyjs
PocketGalaxy effect in JavaScript
https://github.com/turborium/pocketgalaxyjs
gdd graphics-programming image-effect image-processing javascript
Last synced: 2 months ago
JSON representation
PocketGalaxy effect in JavaScript
- Host: GitHub
- URL: https://github.com/turborium/pocketgalaxyjs
- Owner: turborium
- License: mit
- Created: 2024-06-22T04:46:27.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-22T06:47:54.000Z (7 months ago)
- Last Synced: 2024-06-23T16:13:18.871Z (7 months ago)
- Topics: gdd, graphics-programming, image-effect, image-processing, javascript
- Language: JavaScript
- Homepage: https://turborium.github.io/demos/PocketGalaxyJs/
- Size: 2.04 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PocketGalaxyJs
**PocketGalaxy animated pixel effect**---
Try online: https://turborium.github.io/demos/PocketGalaxyJs
![scr](scr.png)Maked by JavaScript with love.
Also, see ObjectPascal version: https://github.com/turborium/PocketGalaxy---
Inspired by article [Complex beauty in a simple formula](https://habr.com/ru/articles/817869/) and comment by [kipar](https://habr.com/ru/articles/817869/#comment_26881773) with code:
```pascal
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;
```