Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stylextv/bubble-pits
Just a silly project I am working on that produces random images. I call them "Bubble Pits".
https://github.com/stylextv/bubble-pits
Last synced: 25 days ago
JSON representation
Just a silly project I am working on that produces random images. I call them "Bubble Pits".
- Host: GitHub
- URL: https://github.com/stylextv/bubble-pits
- Owner: stylextv
- Created: 2019-10-14T12:33:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-29T07:04:07.000Z (over 1 year ago)
- Last Synced: 2024-10-14T06:36:03.601Z (2 months ago)
- Language: Java
- Size: 21.1 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bubble-Pits
Just a silly project I am working on that produces random images. I call them "Bubble Pits".The code in this github repository lets you create a video file ("output.mp4") with n frames at 60 fps.
With a random seed from 0 to 9999 a random animation of these interesting shapes is shown.
Here is a screenshot of the first frame of a video with the seed 10.![alt text](https://raw.githubusercontent.com/StylexTV/Bubble-Pits/master/image.png)
The algorithm works by applying this formula to each pixel in a frame (each channel has it's own x offset):
brightness = abs( simplex(pixelX,pixelY,frameIndex) ) * 255Then it will apply a "3D-effect" onto the rendered frame by offsetting the r, g and b channel again:
r(x -25)
g(x +25)
b(x +25)
A rendered frame is send to ffmpeg via a pipeline and after all frames are sent ffmpeg creates the .mp4 file and the process exits.