Giter Site home page Giter Site logo

tabatkins / efmath Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erich-friedman/erich-friedman.github.io

0.0 0.0 0.0 624.51 MB

Fork of Erich Friedman's repo to turn all the gifs into svgs

JavaScript 0.02% Mathematica 30.75% HTML 56.16% PostScript 13.08%

efmath's People

Contributors

erich-friedman avatar

Watchers

 avatar

efmath's Issues

Packing attack plan

So the first project is converting the Packing projects to SVG. I presume we'll start with the square-in-square, as it's both simple and just barely non-trivial enough to explore the solution space well (and the angled squares are so ugly in the current gifs).

Proposed plan:

  • Add a script folder to root that'll hold our Python
  • Add a JSON file to the packing sqinsq folder, with some standardized name
    • It's a list of objects, which list a filename, a background shape, and any number of foreground shapes, in some compact format
  • The script finds the JSONs, and produces a bunch of SVGs out of them in the given folder.
  • It also rewrites all instances of the .gif filename to the .svg filename in the associated HTML files? Or we just replace the gifs directly, and end up with a bunch of SVGs with a .gif extension - confusing, but whatever. Or generate each file with both a .gif and .svg extension, and don't modify any HTML?

Instead of JSON, maybe we can use KDL? It's a better config language than JSON, and I'm the author of a Python KDL-parsing library (kdl-py on pip), so I'd like an excuse to try it out in a real-world example and find friction points to fix. ^_^

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.