Giter Club home page Giter Club logo

fxyt's People

Contributors

jl avatar mccartney avatar susam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fxyt's Issues

insignificant whitespace (and comments?)

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.

Add sqrt

If we had sqrt (square root) if would be easier to draw circles of given radius.

Undefined behaviour for F and M commands

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.

More examples!

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*

https://susam.net/fxyt.html#NNNN7bSDDpN1024qRDDpN1024qRsN4096lbRN1sRRcSDDpN1024qRDDpN1024qRsN4096libPPN4000N4000cSDDpN1024qRDDpN1024qRSdXN128dN12pN512dsRRpN512qYN128dN12pscPPN30p

That was a fun diversion for a Saturday afternoon - thank you!

Polar coordinates?

I think it would work great if it came with support for polar coordinates, thus making the pictures more "circular".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.