0.1.2 • Published 6 months ago
@types/ethereum-blockies v0.1.2
Installation
npm install --save @types/ethereum-blockies
Summary
This package contains type definitions for ethereum-blockies (https://github.com/ethereum/blockies).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ethereum-blockies.
index.d.ts
// Type definitions for ethereum-blockies 0.1
// Project: https://github.com/ethereum/blockies
// Definitions by: Jack Works <https://github.com/Jack-Works>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface BlockieOptions {
/** seed used to generate icon data, default: random */
seed?: string;
/** to manually specify the icon color, default: random */
color?: string;
/** choose a different background color, default: random */
bgcolor?: string;
/** width/height of the icon in blocks, default: 8 */
size?: number;
/** width/height of each block in pixels, default: 4 */
scale?: number;
/**
* each pixel has a 13% chance of being of a third color, default: random.
*
* Set to -1 to disable it.
*
* These "spots" create structures that look like eyes, mouths and noses.
*/
spotcolor?: number;
}
export function create(options?: BlockieOptions): HTMLCanvasElement;
Additional Details
- Last updated: Tue, 07 Dec 2021 20:01:03 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Jack Works.