Hello everyone. I'm new in JavaScript and I would like to create plugin that draws graph with two orthogonal axes, so I'd like to know if RPGMV contains libraries to draw figures, plots or diagrams.
MV Draw a plot in a RPGMaker MV game
Learning JavascriptNothing specific to graphs, but I'd suggest the built-in Canvas API:
developer.mozilla.org
In terms of RPG Maker MV/Z's core scripts, the relevant context is usually accessed as the
E.g. check out the
CanvasRenderingContext2D - Web APIs | MDN
The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects.
_context property of a Bitmap instance. These are usually defined for Sprite instances, e.g. sprite.bitmap.E.g. check out the
fillRect method of Bitmap (rpg_core.js).Original thread: https://forums.rpgmakerweb.com/threads/draw-a-plot-in-a-rpgmaker-mv-game.168642/