diff --git a/docs/README.md b/docs/README.md index 6cb5482..85610f3 100644 --- a/docs/README.md +++ b/docs/README.md @@ -18,7 +18,7 @@ - [ArtType](README.md#arttype) - [HookType](README.md#hooktype) -- [RGBA](README.md#rgba) +- [RGBFormat](README.md#rgbformat) - [Shape](README.md#shape) - [VoidCallback](README.md#voidcallback) @@ -26,9 +26,9 @@ ### ArtType -Ƭ **ArtType**: *pointillism* +Ƭ **ArtType**: *pointillism* \| *mosaic* -Defined in: [pixel-art.ts:48](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L48) +Defined in: [pixel-art.ts:43](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L43) ___ @@ -36,15 +36,15 @@ ___ Ƭ **HookType**: *initialize* \| *beforeDraw* \| *afterDraw* -Defined in: [pixel-art.ts:46](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L46) +Defined in: [pixel-art.ts:41](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L41) ___ -### RGBA +### RGBFormat -Ƭ **RGBA**: [*number*, *number*, *number*, *number*] +Ƭ **RGBFormat**: [*number*, *number*, *number*] -Defined in: [pixel-art.ts:39](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L39) +Defined in: [pixel-art.ts:34](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L34) ___ @@ -52,7 +52,7 @@ ___ Ƭ **Shape**: *circle* \| *square* -Defined in: [pixel-art.ts:37](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L37) +Defined in: [pixel-art.ts:32](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L32) ___ @@ -66,4 +66,4 @@ ___ **Returns:** *void* -Defined in: [pixel-art.ts:30](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L30) +Defined in: [pixel-art.ts:25](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L25) diff --git a/docs/classes/pixelart.md b/docs/classes/pixelart.md index 0b556a6..dfce274 100644 --- a/docs/classes/pixelart.md +++ b/docs/classes/pixelart.md @@ -10,44 +10,47 @@ ### Properties +- [#colorMap](pixelart.md##colormap) - [#ctx](pixelart.md##ctx) - [#drawCount](pixelart.md##drawcount) - [#hooks](pixelart.md##hooks) - [#imageData](pixelart.md##imagedata) - [#img](pixelart.md##img) +- [#intervalMs](pixelart.md##intervalms) - [#isInitialized](pixelart.md##isinitialized) - [#lastAnimationTimeMs](pixelart.md##lastanimationtimems) - [#que](pixelart.md##que) - [#requestAnimationId](pixelart.md##requestanimationid) - [#shadowCanvas](pixelart.md##shadowcanvas) - [#shadowCtx](pixelart.md##shadowctx) +- [#unusedCoords](pixelart.md##unusedcoords) +- [alpha](pixelart.md#alpha) - [canvas](pixelart.md#canvas) - [imgUrl](pixelart.md#imgurl) -- [initialDrawCount](pixelart.md#initialdrawcount) -- [intervalMs](pixelart.md#intervalms) -- [maxSize](pixelart.md#maxsize) -- [minSize](pixelart.md#minsize) -- [shape](pixelart.md#shape) +- [level](pixelart.md#level) - [type](pixelart.md#type) ### Accessors - [drawCount](pixelart.md#drawcount) +- [pointWidth](pixelart.md#pointwidth) +- [unusedCoordsCount](pixelart.md#unusedcoordscount) ### Methods - [addHook](pixelart.md#addhook) - [afterInitialize](pixelart.md#afterinitialize) -- [cancelAnimation](pixelart.md#cancelanimation) - [clear](pixelart.md#clear) +- [createColorMap](pixelart.md#createcolormap) - [draw](pixelart.md#draw) - [execHook](pixelart.md#exechook) -- [getColor](pixelart.md#getcolor) +- [getRGB](pixelart.md#getrgb) - [getRandomCoord](pixelart.md#getrandomcoord) - [init](pixelart.md#init) - [random](pixelart.md#random) - [reset](pixelart.md#reset) - [startAnimation](pixelart.md#startanimation) +- [stopAnimation](pixelart.md#stopanimation) ## Constructors @@ -63,15 +66,23 @@ Name | Type | **Returns:** [*PixelArt*](pixelart.md) -Defined in: [pixel-art.ts:74](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L74) +Defined in: [pixel-art.ts:101](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L101) ## Properties +### #colorMap + +• `Private` **#colorMap**: [*RGBFormat*](../README.md#rgbformat)[][] + +Defined in: [pixel-art.ts:64](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L64) + +___ + ### #ctx • `Private` **#ctx**: CanvasRenderingContext2D -Defined in: [pixel-art.ts:62](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L62) +Defined in: [pixel-art.ts:54](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L54) ___ @@ -79,7 +90,7 @@ ___ • `Private` **#drawCount**: *number*= 0 -Defined in: [pixel-art.ts:70](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L70) +Defined in: [pixel-art.ts:62](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L62) ___ @@ -87,7 +98,7 @@ ___ • `Private` **#hooks**: [*Hook*](../interfaces/hook.md)[] -Defined in: [pixel-art.ts:66](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L66) +Defined in: [pixel-art.ts:58](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L58) ___ @@ -95,7 +106,7 @@ ___ • `Private` **#imageData**: ImageData -Defined in: [pixel-art.ts:67](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L67) +Defined in: [pixel-art.ts:59](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L59) ___ @@ -103,7 +114,15 @@ ___ • `Private` **#img**: HTMLImageElement -Defined in: [pixel-art.ts:63](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L63) +Defined in: [pixel-art.ts:55](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L55) + +___ + +### #intervalMs + +• `Private` **#intervalMs**: *number*= 100 + +Defined in: [pixel-art.ts:65](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L65) ___ @@ -111,7 +130,7 @@ ___ • `Private` **#isInitialized**: *boolean*= false -Defined in: [pixel-art.ts:64](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L64) +Defined in: [pixel-art.ts:56](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L56) ___ @@ -119,7 +138,7 @@ ___ • `Private` **#lastAnimationTimeMs**: *number*= 0 -Defined in: [pixel-art.ts:69](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L69) +Defined in: [pixel-art.ts:61](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L61) ___ @@ -127,7 +146,7 @@ ___ • `Private` **#que**: [*VoidCallback*](../README.md#voidcallback)[] -Defined in: [pixel-art.ts:65](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L65) +Defined in: [pixel-art.ts:57](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L57) ___ @@ -135,7 +154,7 @@ ___ • `Private` **#requestAnimationId**: *null* \| *number*= null -Defined in: [pixel-art.ts:68](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L68) +Defined in: [pixel-art.ts:60](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L60) ___ @@ -143,7 +162,7 @@ ___ • `Private` **#shadowCanvas**: HTMLCanvasElement -Defined in: [pixel-art.ts:60](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L60) +Defined in: [pixel-art.ts:52](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L52) ___ @@ -151,81 +170,85 @@ ___ • `Private` **#shadowCtx**: CanvasRenderingContext2D -Defined in: [pixel-art.ts:61](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L61) +Defined in: [pixel-art.ts:53](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L53) ___ -### canvas +### #unusedCoords -• **canvas**: HTMLCanvasElement +• `Private` **#unusedCoords**: [*Coord*](../interfaces/coord.md)[] -Defined in: [pixel-art.ts:51](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L51) +Defined in: [pixel-art.ts:63](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L63) ___ -### imgUrl +### alpha -• **imgUrl**: *string* +• **alpha**: *number* -Defined in: [pixel-art.ts:52](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L52) +Defined in: [pixel-art.ts:50](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L50) ___ -### initialDrawCount +### canvas -• **initialDrawCount**: *number* +• **canvas**: HTMLCanvasElement -Defined in: [pixel-art.ts:56](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L56) +Defined in: [pixel-art.ts:46](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L46) ___ -### intervalMs +### imgUrl -• **intervalMs**: *number* +• **imgUrl**: *string* -Defined in: [pixel-art.ts:55](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L55) +Defined in: [pixel-art.ts:47](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L47) ___ -### maxSize +### level -• **maxSize**: *number* +• **level**: *number* -Defined in: [pixel-art.ts:54](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L54) +Defined in: [pixel-art.ts:49](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L49) ___ -### minSize +### type + +• **type**: [*ArtType*](../README.md#arttype) -• **minSize**: *number* +Defined in: [pixel-art.ts:48](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L48) -Defined in: [pixel-art.ts:53](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L53) +## Accessors -___ +### drawCount -### shape +• get **drawCount**(): *number* -• **shape**: [*Shape*](../README.md#shape) +**Returns:** *number* -Defined in: [pixel-art.ts:57](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L57) +Defined in: [pixel-art.ts:67](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L67) ___ -### type +### pointWidth -• **type**: *pointillism* +• get **pointWidth**(): *number* -Defined in: [pixel-art.ts:58](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L58) +**Returns:** *number* -## Accessors +Defined in: [pixel-art.ts:71](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L71) -### drawCount +___ -• get **drawCount**(): *number* +### unusedCoordsCount + +• get **unusedCoordsCount**(): *number* **Returns:** *number* -Defined in: [pixel-art.ts:72](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L72) +Defined in: [pixel-art.ts:99](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L99) ## Methods @@ -242,43 +265,51 @@ Name | Type | **Returns:** *void* -Defined in: [pixel-art.ts:140](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L140) +Defined in: [pixel-art.ts:166](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L166) ___ ### afterInitialize -▸ **afterInitialize**(`callback`: [*VoidCallback*](../README.md#voidcallback)): *void* +▸ **afterInitialize**(`callback`: () => T \| *Promise*): *Promise* + +#### Type parameters: + +Name | Default | +:------ | :------ | +`T` | *void* | #### Parameters: Name | Type | :------ | :------ | -`callback` | [*VoidCallback*](../README.md#voidcallback) | +`callback` | () => T \| *Promise* | -**Returns:** *void* +**Returns:** *Promise* -Defined in: [pixel-art.ts:131](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L131) +Defined in: [pixel-art.ts:153](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L153) ___ -### cancelAnimation +### clear -▸ **cancelAnimation**(): *Promise* +▸ **clear**(): *Promise* **Returns:** *Promise* -Defined in: [pixel-art.ts:234](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L234) +Defined in: [pixel-art.ts:322](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L322) ___ -### clear +### createColorMap -▸ **clear**(): *Promise* +▸ **createColorMap**(): *Promise* + +**`todo`** 성능 문제때문에 워커로 분리 필요 **Returns:** *Promise* -Defined in: [pixel-art.ts:256](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L256) +Defined in: [pixel-art.ts:342](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L342) ___ @@ -288,7 +319,7 @@ ___ **Returns:** *Promise* -Defined in: [pixel-art.ts:185](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L185) +Defined in: [pixel-art.ts:214](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L214) ___ @@ -304,13 +335,13 @@ Name | Type | **Returns:** *void* -Defined in: [pixel-art.ts:250](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L250) +Defined in: [pixel-art.ts:316](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L316) ___ -### getColor +### getRGB -▸ **getColor**(`xCoord`: *number*, `yCoord`: *number*): *Promise*<[*RGBA*](../README.md#rgba)\> +▸ **getRGB**(`xCoord`: *number*, `yCoord`: *number*): *Promise*<[*RGBFormat*](../README.md#rgbformat)\> #### Parameters: @@ -319,9 +350,9 @@ Name | Type | `xCoord` | *number* | `yCoord` | *number* | -**Returns:** *Promise*<[*RGBA*](../README.md#rgba)\> +**Returns:** *Promise*<[*RGBFormat*](../README.md#rgbformat)\> -Defined in: [pixel-art.ts:165](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L165) +Defined in: [pixel-art.ts:198](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L198) ___ @@ -331,7 +362,7 @@ ___ **Returns:** *Promise*<[*Coord*](../interfaces/coord.md)\> -Defined in: [pixel-art.ts:152](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L152) +Defined in: [pixel-art.ts:178](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L178) ___ @@ -341,7 +372,7 @@ ___ **Returns:** *Promise* -Defined in: [pixel-art.ts:89](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L89) +Defined in: [pixel-art.ts:113](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L113) ___ @@ -359,7 +390,7 @@ Name | Type | Default value | **Returns:** *number* -Defined in: [pixel-art.ts:144](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L144) +Defined in: [pixel-art.ts:170](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L170) ___ @@ -369,7 +400,7 @@ ___ **Returns:** *Promise* -Defined in: [pixel-art.ts:268](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L268) +Defined in: [pixel-art.ts:331](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L331) ___ @@ -379,4 +410,14 @@ ___ **Returns:** *Promise* -Defined in: [pixel-art.ts:214](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L214) +Defined in: [pixel-art.ts:271](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L271) + +___ + +### stopAnimation + +▸ **stopAnimation**(): *Promise* + +**Returns:** *Promise* + +Defined in: [pixel-art.ts:304](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L304) diff --git a/docs/interfaces/coord.md b/docs/interfaces/coord.md index 16e9ded..9dd56c5 100644 --- a/docs/interfaces/coord.md +++ b/docs/interfaces/coord.md @@ -15,7 +15,7 @@ • **x**: *number* -Defined in: [pixel-art.ts:33](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L33) +Defined in: [pixel-art.ts:28](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L28) ___ @@ -23,4 +23,4 @@ ___ • **y**: *number* -Defined in: [pixel-art.ts:34](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L34) +Defined in: [pixel-art.ts:29](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L29) diff --git a/docs/interfaces/hook.md b/docs/interfaces/hook.md index 6a568c4..7c73396 100644 --- a/docs/interfaces/hook.md +++ b/docs/interfaces/hook.md @@ -15,7 +15,7 @@ • **callback**: [*VoidCallback*](../README.md#voidcallback) -Defined in: [pixel-art.ts:43](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L43) +Defined in: [pixel-art.ts:38](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L38) ___ @@ -23,4 +23,4 @@ ___ • **type**: [*HookType*](../README.md#hooktype) -Defined in: [pixel-art.ts:42](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L42) +Defined in: [pixel-art.ts:37](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L37) diff --git a/docs/interfaces/pixelartoptions.md b/docs/interfaces/pixelartoptions.md index cf46659..bbd0f82 100644 --- a/docs/interfaces/pixelartoptions.md +++ b/docs/interfaces/pixelartoptions.md @@ -6,87 +6,61 @@ ### Properties +- [alpha](pixelartoptions.md#alpha) - [canvas](pixelartoptions.md#canvas) - [imgUrl](pixelartoptions.md#imgurl) -- [initialDrawCount](pixelartoptions.md#initialdrawcount) -- [intervalMs](pixelartoptions.md#intervalms) -- [maxSize](pixelartoptions.md#maxsize) -- [minSize](pixelartoptions.md#minsize) -- [shape](pixelartoptions.md#shape) +- [level](pixelartoptions.md#level) - [type](pixelartoptions.md#type) ## Properties -### canvas - -• **canvas**: HTMLCanvasElement - -Defined in: [pixel-art.ts:2](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L2) - -___ +### alpha -### imgUrl - -• **imgUrl**: *string* - -Defined in: [pixel-art.ts:3](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L3) - -___ +• `Optional` **alpha**: *number* -### initialDrawCount +point 투명도 -• `Optional` **initialDrawCount**: *number* +- 범위 : 0 ~ 1 -**`default`** 0 +**`default`** 0.2 -Defined in: [pixel-art.ts:19](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L19) +Defined in: [pixel-art.ts:22](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L22) ___ -### intervalMs - -• `Optional` **intervalMs**: *number* +### canvas -**`default`** 10 +• **canvas**: HTMLCanvasElement -Defined in: [pixel-art.ts:15](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L15) +Defined in: [pixel-art.ts:2](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L2) ___ -### maxSize - -• `Optional` **maxSize**: *number* +### imgUrl -**`default`** 20 +• **imgUrl**: *string* -Defined in: [pixel-art.ts:11](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L11) +Defined in: [pixel-art.ts:3](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L3) ___ -### minSize - -• `Optional` **minSize**: *number* - -**`default`** 10 - -Defined in: [pixel-art.ts:7](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L7) - -___ +### level -### shape +• `Optional` **level**: *number* -• `Optional` **shape**: [*Shape*](../README.md#shape) +level이 높을수록 point 크기가 커집니다. +1 ~ 5까지 입력할 수 있습니다. -**`default`** 'square' +**`default`** 2 -Defined in: [pixel-art.ts:23](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L23) +Defined in: [pixel-art.ts:14](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L14) ___ ### type -• `Optional` **type**: *pointillism* +• `Optional` **type**: [*ArtType*](../README.md#arttype) **`default`** 'pointillism' -Defined in: [pixel-art.ts:27](https://github.com/divlook/pixel-art/blob/07be79c/libs/pixel-art.ts#L27) +Defined in: [pixel-art.ts:7](https://github.com/divlook/pixel-art/blob/6c9f6c1/libs/pixel-art.ts#L7)