Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rladstaetter/plasma
Old school plasma effect for JavaFX and Scala.js
https://github.com/rladstaetter/plasma
gfx javafx oldschool sbt scala scala-js scalajs
Last synced: 10 days ago
JSON representation
Old school plasma effect for JavaFX and Scala.js
- Host: GitHub
- URL: https://github.com/rladstaetter/plasma
- Owner: rladstaetter
- License: mit
- Created: 2017-12-15T19:25:27.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-22T13:22:22.000Z (almost 5 years ago)
- Last Synced: 2024-11-12T23:35:52.759Z (2 months ago)
- Topics: gfx, javafx, oldschool, sbt, scala, scala-js, scalajs
- Language: Scala
- Homepage:
- Size: 229 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Plasma
An old school plasma effect written in Scala. It creates a plasma effect both in JavaFX and Scala.js.
![a plasma effect](plasma-effect.png?raw=true)
See http://ladstatt.net/plasma/ for a online demo.
## How to compile
Start sbt in the main directory.
In sbt shell enter
project jfx
and afterwardsrun
you should see a window showcasing the plasma effect using JavaFX.If you want to see the javascript version, enter
project js
and afterwardsfastOptJS
After entering this command, open ./js/fastopt-plasma.html with your favorite browser - you should see the javascript demo.There is a second option to generate a full optimized javascript version, which runs slightly faster. You can generate this version by issuing
fullOptJS
in the sbt console. Afterwards, open ./js/fullopt-plasma.html. It will compile a little bit longer, but the difference in file size is significant.
## Thanks
This project is a reimplementation of https://www.bidouille.org/prog/plasma/ - go there if you want a more in depth explanation about the math behind this project.
## License
MIT