jeregrine

jeregrine

Phoenix Core Team

This is a canvas compatible api where I used the WebIDL for the CanvasRendering2d module from Firefox/Safari and converted all its functions from camelCase to snake_case and attributes to setter functions. Allowing you to write elixir and get out art or animations or charts on a canvas. Initially this was just going to be for LiveView but I realized an LLM could help me port those function calls to Wk and it did just that!

https://easel-demo.fly.dev

Above a demo site with some drawings showing some pretty stressful cases for this style of work but hopefully showing the capabilities here. Great way to get your fly machine cpu throttled lol.

For the examples I simply asked an LLM (opus4.6 and codex5.3) to create them and it had no trouble one-shotting all of them. Which makes sense because canvas is most likely well represented in it’s dataset and its trivial for it to translate it.

I did have to massage the Boids example and add templating/instancing to make it work better and also “quantization” aka chomping the precision off the floats to avoid sending mb’s of data to do 60fps. With Wx this was not an issue of course.

Here is the source and it’s up on hex/hexdocs as well.

https://github.com/jeregrine/Easel

Happy to answer any questions or take feedback.

Showing Posts 1 to 2

mudasobwa

mudasobwa

Creator of Cure

Looks fantastic.

I’d wild guess you use daisyUI and it’s not updated for system-wide dark theme (which it detects anyway,) resulting in:

jeregrine

jeregrine OP

Phoenix Core Team

Yeah makeup didn’t pickup the dark mode haha. I’ll poke around this afternoon thanks for the heads up.

— All posts loaded —

Where Next? Top

Trending in Announcing Top

woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
New
MRdotB
I needed to reuse React components from my Chrome extension in my Phoenix/LiveView backend. I noticed that for Svelte/Vue, there are live...
New
woylie
I released Doggo, a collection of unstyled Phoenix components. https://github.com/woylie/doggo Features Unstyled Phoenix components....
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
anuaralfetahe
Hello Published a new library - ProcessHub! ProcessHub is a library designed to manage process distribution within the Elixir cluster. ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
sergio
It’s not that it’s vocabulary is too advanced. It’s something worse. I get lost trying to follow even a paragraph written by Claude. It’...
New
AstonJ
This showed up on my feed.. anyone heard of it? Just hype? Ox Alpha is a reasoning model designed for coding, sustained ag...
New
bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews