@flashport/flashport
Version:
FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library
39 lines (38 loc) • 1.13 kB
TypeScript
/**
* Generic, auxiliary functions
*
* @author Zeh Fernando
* @version 1.0.0
* @private
*/
export declare class AuxFunctions {
/**
* Gets the R (xx0000) bits from a number
*
* @param p_num Number Color number (ie, 0xffff00)
* @return Number The R value
*/
static numberToR: (p_num: number) => number;
/**
* Gets the G (00xx00) bits from a number
*
* @param p_num Number Color number (ie, 0xffff00)
* @return Number The G value
*/
static numberToG: (p_num: number) => number;
/**
* Gets the B (0000xx) bits from a number
*
* @param p_num Number Color number (ie, 0xffff00)
* @return Number The B value
*/
static numberToB: (p_num: number) => number;
/**
* Returns the number of properties an object has
*
* @param p_object Object Target object with a number of properties
* @return Number Number of total properties the object has
*/
static getObjectLength: (p_object: any) => number;
static concatObjects: (...args: any[]) => Object;
}