susam / fxyt Goto Github PK
View Code? Open in Web Editor NEWTiny, esoteric, stack-based, postfix, canvas colouring language with only 36 simple commands
Home Page: https://susam.net/fxyt.html
License: MIT License
Tiny, esoteric, stack-based, postfix, canvas colouring language with only 36 simple commands
Home Page: https://susam.net/fxyt.html
License: MIT License
It would be nice to see some more examples - maybe you could make a gallery of them?
This would be my submission - a very low res mandlebrot set plotter. It can only look to depth 7 otherwise it uses more than 1000 iterations.
NNNN7[SDD*N1024/RDD*N1024/R+N4096<[RN1+RR]SDD*N1024/RDD*N1024/R+N4096<![PPN4000N4000]SDD*N1024/RDD*N1024/RS-XN128-N12*N512-+RR*N512/YN128-N12*+]PPN30*
That was a fun diversion for a Saturday afternoon - thank you!
I think it would work great if it came with support for polar coordinates, thus making the pictures more "circular".
If we had sqrt (square root) if would be easier to draw circles of given radius.
Hi, I love your language! I'm writing an implementation of it over at https://github.com/mademast/fxyt and I noticed two areas where the spec leaves behaviour undefined: using M to increment the mode more than twice and using F to set different frame intervals for different spatial coordinates. From looking at your reference implementation, it looks like overincrementing the mode is an error, and the only frame interval that matters is the final pixel (all others are ignored). I may have misread, though.
I agree with the first behaviour, but maybe having F set different values based on the grid coordinates should be an error? Otherwise different implementations could behave differently depending on what order they render the image in. Each pixel could also set its own frame interval (could be visually interesting!), but that would significantly increase the complexity of a FXYT interpreter and introduce the issue of synchronization.
It would work to let F set different values based on the T coordinate; that makes intuitive sense to me.
(maybe setting the frame interval to a negative value should also be an error?)
Thanks for making this project! It's been a lot of fun throwing together a simple parser and interpreter for it.
N0N0XN100>[Y]R
yields a weird error message:
ERROR: (0, 0): 14: ‘R’ found 2 values on stack; needs 2
If white space (space or newlines) was allowed (and ignored), it would be easier to structure the programs.
On top of that if one could add a comment which would ignore all the text until a new line, one could produce more readable programs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.