Newer
Older
pixi.js / src / primitives / GraphicsData.js
@Chad Engler Chad Engler on 27 Dec 2014 543 bytes tons of jshint and typo fixes
/**
 * A GraphicsData object.
 *
 * @class
 * @namespace PIXI
 */
function GraphicsData(lineWidth, lineColor, lineAlpha, fillColor, fillAlpha, fill, shape) {
    this.lineWidth = lineWidth;
    this.lineColor = lineColor;
    this.lineAlpha = lineAlpha;
    this._lineTint = lineColor;

    this.fillColor = fillColor;
    this.fillAlpha = fillAlpha;
    this._fillTint = fillColor;
    this.fill = fill;

    this.shape = shape;
    this.type = shape.type;
}

GraphicsData.prototype.constructor = GraphicsData;
module.exports = GraphicsData;