Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector graphics for Cuis #169

Open
codefrau opened this issue Jun 6, 2024 · 1 comment
Open

Vector graphics for Cuis #169

codefrau opened this issue Jun 6, 2024 · 1 comment

Comments

@codefrau
Copy link
Owner

codefrau commented Jun 6, 2024

Originally posted by @bpieber in #168 (comment)

I love the fact that SqueakJS runs a recent Cuis image. It pauses often when using it, though. I wonder if porting the VectorEnginePlugin would help and be feasible? Juan also mentioned the possibility to implement the VectorCanvas using Web APIs. Maybe that would be easier?

@codefrau
Copy link
Owner Author

codefrau commented Jun 6, 2024

Both would work, and yes that should help a lot.

“Easier” is relative – VectorEnginePlugin is just a Slang plugin, you could generate the JS code for it like I did for most other Slang plugins. Mind the last time I generated that code was in 2014, my VMMakerJS package is probably out of date. So either you adapt it to current VMMaker (which I would greatly appreciate!) or you find an old VMMaker version that is compatible.

How much work it would be to implement VectorCanvas in JS (and if the overhead would be worth it) I can't say. Maybe @jvuletich has an idea? You could write a SqueakJS plugin in JS, or use SqueakJS's JSBridge, which lets you directly call Javascript code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant