-
Notifications
You must be signed in to change notification settings - Fork 16
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
topic: SVG rendering #19
Comments
Thanks for the proposal @shritesh - the theme of the previous two books was "tools that programmers use when programming", and while I'm a big fan of turtle graphics for teaching, I don't think it's something people use when building code. @rtfeldman thoughts on how wide you want this to go? (Cf. discussion of implementing a neural network in #4.) |
Ah that's a fair point! I think turtle graphics in Roc would be really cool to see, but maybe it's not quite the right fit for this particular book. |
As an alternative: @shritesh would you be interested in showing people how (a simple subset of) SVG is rendered? Or how to translate https://aosabook.org/en/500L/a-3d-modeller.html into Roc? |
Both of those ideas sound awesome. I have already built a raytracer (based on the Ray Tracing in One Weekend book) in Roc along with a platform for graphics. We can probably extract a lot from there. |
Thanks @shritesh - I think a ray tracer has the same issue as turtle graphics, but a graphics platform would be a great fit. If you want to tackle the latter, can you please create a directory under the project root called |
In case it may still be useful: https://github.com/Hasnep/roc-svg |
I'll go with the SVG rendering. I'll also implement a simple Canvas platform that takes in a framebuffer and renders it. That way, the entirety of the rendering content will be in Roc and the platform itself can be useful for the rest of the ecosystem. Thanks @Anton-4, that'll definitely be useful. |
Thanks @shritesh - can you please create a PR that creates a subdirectory |
Will do later tonight! Thanks |
I just released a library to create images and export to PNG in pure Roc: https://github.com/shritesh/roc-image. I'll probably use this instead of building a framebuffer platform. |
I've added an example in roc-image to render the Roc SVG logo |
IMO the book should showcase a platform implementation and turtle graphics is a fun and simple one to do.
The text was updated successfully, but these errors were encountered: