phaser/src/gameobjects/graphics/Commands.js
2024-02-19 17:12:24 +00:00

29 lines
562 B
JavaScript

/**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2024 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
module.exports = {
ARC: 0,
BEGIN_PATH: 1,
CLOSE_PATH: 2,
FILL_RECT: 3,
LINE_TO: 4,
MOVE_TO: 5,
LINE_STYLE: 6,
FILL_STYLE: 7,
FILL_PATH: 8,
STROKE_PATH: 9,
FILL_TRIANGLE: 10,
STROKE_TRIANGLE: 11,
SAVE: 14,
RESTORE: 15,
TRANSLATE: 16,
SCALE: 17,
ROTATE: 18,
GRADIENT_FILL_STYLE: 21,
GRADIENT_LINE_STYLE: 22
};