11<!--
22
33TODO rewrite v1 docs in separate doc
4- TODO update docs for v2
54
65 -->
76
@@ -46,23 +45,22 @@ _Options are **not** [sanitized](https://en.wikipedia.org/wiki/HTML_sanitization
4645
4746#### Required
4847
49- Name | Type | Description
50- -------------- | ---------- | ---------------------------------------------
51- ` size ` | ` number ` | Bounding box dimensions (in pixels)
52- ` complexity ` | ` number ` | Blob complexity (number of points)
53- ` contrast ` | ` number ` | Blob contrast (randomness of point position)
54-
48+ | Name | Type | Description |
49+ | ------------ | -------- | -------------------------------------------- |
50+ | ` size ` | ` number ` | Bounding box dimensions (in pixels) |
51+ | ` complexity ` | ` number ` | Blob complexity (number of points) |
52+ | ` contrast ` | ` number ` | Blob contrast (randomness of point position) |
5553
5654#### Optional
5755
58- Name | Type | Default | Description
59- -------------- | ---------- | ---------- | -------------------------------------
60- ` color ` | ` string? ` | ` "none" ` | Fill color
61- ` stroke ` | ` object? ` | ` ... ` | Stroke options
62- ` stroke.color ` | ` string ` | ` "none" ` | Stroke color
63- ` stroke.width ` | ` number ` | ` 0 ` | Stroke width (in pixels)
64- ` seed ` | ` string? ` | _ ` random ` _ | Value to seed random number generator
65- ` guides ` | ` boolean? ` | ` false ` | Render points, handles and stroke
56+ | Name | Type | Default | Description |
57+ | -------------- | ---------- | ---------- | ------------------------------------- |
58+ | ` color ` | ` string? ` | ` "none" ` | Fill color |
59+ | ` stroke ` | ` object? ` | ` ... ` | Stroke options |
60+ | ` stroke.color ` | ` string ` | ` "none" ` | Stroke color |
61+ | ` stroke.width ` | ` number ` | ` 0 ` | Stroke width (in pixels) |
62+ | ` seed ` | ` string? ` | _ ` random ` _ | Value to seed random number generator |
63+ | ` guides ` | ` boolean? ` | ` false ` | Render points, handles and stroke |
6664
6765_ Either ` stroke ` or ` color ` must be defined._
6866
@@ -72,16 +70,16 @@ _Guides will use stroke color and width if defined. Otherwise, they default to `
7270
7371``` typescript
7472const options = {
75- size: 600 ,
76- complexity: 0.2 ,
77- contrast: 0.4 ,
78- color: " #ec576b" ,
79- stroke: {
80- width: 0 ,
81- color: " black" ,
82- },
83- guides: false ,
84- seed: " 1234" ,
73+ size: 600 ,
74+ complexity: 0.2 ,
75+ contrast: 0.4 ,
76+ color: " #ec576b" ,
77+ stroke: {
78+ width: 0 ,
79+ color: " black" ,
80+ },
81+ guides: false ,
82+ seed: " 1234" ,
8583};
8684```
8785
0 commit comments