GithubHelp home page GithubHelp logo

marching_squares's Introduction

Marching Squares

Description

Lately I've been watching some videos from the The Coding Train on Youtube, they have awesome content for beginners and advanced programmers. I don't have a solid background on image processing or stuff like that, so I've been really appreciating the content.

One of the videos from the "Coding in the Cabana" series describes the Marching Squares algorihtm and I've decided to give it a go. I've managed to download the Processing IDE and then I thought: "Wait, am I really coding in Java?". Well, next thing I found was this processing-py application that lets you code using Python. Is it good? Well, honestly no. It uses Jython on the backend and currently only supports Python 2.7. The performance is not that good and integrating with 3rd party modules is a pain. But, at least for me, it is fun!

So, here you will find an implementation for the Marching Squares algorithm on processing-py.

How to run?

Because I wrote this using processing-py to run this you will have some challenges (sorry!).

  1. First things first, you need to install Processing on your local machine, follow the instructions here
  2. Now, in order to run this from the command line, follow this instructions
  3. Finally, to run the program:
# You need to point the location where the processing-py is stored on your local machine
java -jar /path/to/jar/processing-py.jar processing.py

Some reference images

Some nice viz that I managed to generate:

OpenSimplex Noise

OpenSimplexNoise

marching_squares's People

Contributors

guimorg avatar

Watchers

James Cloos avatar  avatar

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.