Box2D into Codea, Java into Lua

Several recent translations of Box2D examples (from Daniel Shiffman’s book The Nature of Code) into Codea, that is Processing (Java) into Lua. Both Box2D and Codea are physics libraries. Surface: … Continue reading Box2D into Codea, Java into Lua

Neural Networks. Perceptron and Preception Seeking in JavaScript

Simon has translated Examples 10.1 (Perceptron) and 10.2 (Perceptron Steering) from Daniel Shiffman’s Nature of Code book, Chapter 10 (Neural Networks) into JavaScript in Codepen.io. Both projects are available online, … Continue reading Neural Networks. Perceptron and Preception Seeking in JavaScript

Autonomous Agents. Steering Behaviors. Flocking.

Simon’s full-screen take on Flocking, based on Chapter 6 from The Nature of Code (Autonomous Agents). The code comes from Daniel Shiffman’s tutorial Combining Behaviors: Flocking. In Simon’s words, Autonomous … Continue reading Autonomous Agents. Steering Behaviors. Flocking.

Drawing Object Trails in Processing

Simon’s translation of the Drawing Object Trails p5.js tutorial into Processing. In the tutorial, Daniel Shiffman looked at how an object can store a history of positions thus allowing to render the object’s … Continue reading Drawing Object Trails in Processing