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
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: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Jack Works.