Converting coding challenge 'Self-avoiding walk backtracing' from p5.js to Processing (Java)

  • I’m back w/ another “Self Avoiding Walk II” conversion.
  • This time I’m using the CoffeeScript language which directly transpiles to JavaScript.
  • Processing 2 used to have a CoffeeScript Mode a long time ago and I’ve ended up learning it.
  • When I later decided to learn Python Mode to help folks here I’ve relied on my previous CoffeeScript knowledge b/c they have similar syntax.
  • The old CoffeeScript Mode relied on the Pjs library in order to run its transpiled sketch on the web.
  • Which by the way is the same lib that transpiles a Java Mode sketch to JS.
  • But I also wanted to use p5js & even q5js to run my latest conversion.
  • So why not make the new CoffeeScript sketch compatible w/ all those 3 libraries?
  • That’s exactly what I did! Each time the sketch is refreshed it randomly picks 1 of the 3 libs:

Click here to download the full app project.
Also go to link below to view it fullscreen:

2 Likes