Comments (11)
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.
from book-of-examples.
I've added an example in roc-image to render the Roc SVG logo
from book-of-examples.
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.
from book-of-examples.
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.)
from book-of-examples.
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.
from book-of-examples.
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?
from book-of-examples.
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.
from book-of-examples.
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 graphics
and put your work there as a standalone Roc project plus an index.md
file with your nodes to yourself? And if you can confirm, I'll update this ticket and assign it to you. Cheers - Greg
from book-of-examples.
showing people how (a simple subset of) SVG is rendered?
In case it may still be useful: https://github.com/Hasnep/roc-svg
from book-of-examples.
Thanks @shritesh - can you please create a PR that creates a subdirectory svg
under the project root and put your code there as a standalone Roc project? Please also add an index.md
file that has your notes to yourself - cheers.
from book-of-examples.
Will do later tonight! Thanks
from book-of-examples.
Related Issues (20)
- infrastructure proposal: create a blog for this book HOT 4
- topic proposal: discrete event simulator HOT 5
- topic: continuous integration HOT 2
- topic proposal: machine learning from first principles HOT 2
- topic proposal: property-based testing framework HOT 3
- topic proposal: a parser with useful error messages
- topic proposal: pseudorandom number generators HOT 1
- topic: regex pattern matching HOT 1
- topic proposal: Redis-like key value store with write-ahead log HOT 7
- topic: JSON ADT and codecs HOT 5
- topic proposal: Parser combinator library HOT 5
- proposal: Prohibit external packages HOT 9
- topic: compression
- proposal: use Jekyll/GitHub Pages _temporarily_ to build a website for this material HOT 2
- Topic proposal: A transpiler to JavaScript HOT 3
- meeting 2024-04-10 HOT 1
- discuss: how to manage inter-chapter dependencies? HOT 1
- topic: package manager
- topic: pretty-printing library HOT 2
- add link to rendered site
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from book-of-examples.