set the channel topic: https://github.com/babashka/sci - also see #babashka, #squint and #nbb
Hi, my question is about Squint 👀 I want to learn and do video animations using https://motioncanvas.io/. I thought Squint might be better and compatible Clojure dialect for this, after failing to setup with ClojureScript as expected. But no success with Squint. Any help please and your thoughts on this? https://motioncanvas.io/docs/quickstart#explanation that was problematic and JSX syntax of Squint too.
Btw, there is a #squint channel for this :)
This example in JS translates to squint as follows:
import {makeProject} from '@motion-canvas/core';
import example from './scenes/example?scene';
export default makeProject({
scenes: [example],
});
(ns my-namespace
(:require ["@motion-canvas/core" :refer [makeProject]]
["./scenes/example?scene$default" :as example]))
(def default (makeProject {:scenes [example]}))I was just working on repo. I could manage to make it work. The thing was to add ^:gen for generator function, as Claude helped.
https://github.com/sumanthyedoti/motion-canvas-squint-cljs
yes
Thank you...! I will carry from here and see how it goes.
OK, let's continue in #squint
Sorry, I don't have a share-able example repo for reference. I can provide on if that is better.
I’ll have a look later today but a repro is always better