massimo
I’ve tweeted this yesterday and it’s getting some attention, so I decided to post it here to share comments, ideas and answer questions, if anybody got some ![]()
The tweet can be found here
https://twitter.com/wstucco/status/1046485501774057473
What I did is write a custom Scene module and a custom Component model on top of Scenic, reusing and extending Scenic’s own Scene and Component modules, that automatically keep track of component creation and can communicate.
The Scene has an internal list of children components and send to each of them an :animation_frame message on regular intervals, the interval is the amount of milliseconds coming out from the formula
trunc(1_000 / FPS * multiplier)
Note:
The timing is not perfect yet, 60 FPS generate an interval of 16ms, which is actually 62.5 FPS
I’m starting a series of posts on this argument and the first one will about writing a Timer that has resolution in the microseconds instead of milliseconds (I’ve managed to have an std deviation of about 30 microseconds at 60 FPS)
You can find some more information on this thread
https://twitter.com/BoydMulterer/status/1046497642442678272
I will use this post as placeholder to post about progresses in the area of pixel animation without having access to pixels
I’ll post the code of the project as soon as I’ll be back home on my couch
With Scenic Elixir enters in the arena of GUI applications and it does in a pretty spectacular way
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ai
- #ecto-query
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #metaprogramming
- #hex











First Post!- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
AstonJ
This is awesome - well done!!
Most Liked
massimo
I’ve just completed another little challenge
This time I’ve implemented the color cycling effect natively in Elixir and Scenic
All the code, including decoding and re-encoding the PNGs and their palettes is pure Elixir
I will release it soon on Gitlab
For those who don’t know what color cycling is
I was heavily inspired by this demo
https://twitter.com/wstucco/status/1051168787347705856
massimo
Code is online for those interested
massimo
@AstonJ @amnu3387
The code is online
Last Post!
massimo
Hi!
Sorry for being so late, unfortunately I’ve been really busy at work and couldn’t find enough time to write something on the topic.
In the meantime I’ve experimented with some ideas and adapted the code to the new version of Scenic and will be back ASAP.
Thanks for your interest!