API | Uses canvas | Graphics libraries | AB framework | Worlds using this API | Starter Worlds |
ML5 (AB) (r1) | Yes | P5, ML5 | Yes | 34 Worlds | Starter Worlds |
This API is for P5 Worlds using ML5.
It comes with an Ancient Brain framework to make writing Worlds easier.
This would require changes to existing ML5 worlds.
So this is really for writing new ML5 Worlds for this platform.
This API has the following features:
ABWorld; // instance of class ABWorldClass - basic functionality for this API ABWorld.webgl = false; // define graphics mode (2D or 3D) // 2D is default // for 3D set this to true ABWorld.init ( color ); // create canvas with some background color // this defines a setup() function and calls P5's createCanvas() function ABWorld.p5canvas; // The object returned by P5's createCanvas() function ABWorld.canvas; // The object corresponding to p5canvas.canvas