Skip to content

Commit

Permalink
Update pixel-renderer.md
Browse files Browse the repository at this point in the history
  • Loading branch information
spaaaacccee authored Jul 2, 2024
1 parent a17f097 commit 763f53b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/3-visualiser/pixel-renderer.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ If you find that **Pixel** is starting to get laggy, here are some tips to impro
| `height` | `number` (px) | Required. Height of the rectangle. |
| `fill` | [`CSSColor`](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) | Required. Color of this rect. |
| `alpha` | `number` (0-1) | Opaqueness of this rect. |
| `label` | `string` | Display a label on top of this element. By default, its baseline left-aligned to the top left corner of the rectangle. The color of the label is determined by the `fill` property. |
| `label` | `string` | Display a label on top of this element. By default, its baseline left-aligned to the top left corner of the rectangle. |
| `label-x` | `number` (px) | Offset the label by this amount horizontally. |
| `label-y` | `number` (px) | Offset the label by this amount vertically. |
| `label-size` | `number` (px) | Required if a label is defined. The font size of the label. `1px` makes the label about `1px` tall. |
| `label-color` | [`CSSColor`](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value)| Required if a label is defined. The color of the label. |

#### `circle`

Expand All @@ -53,10 +54,11 @@ If you find that **Pixel** is starting to get laggy, here are some tips to impro
| `radius` | `number` | Required. The radius of this circle. |
| `fill` | [`CSSColor`](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) | Required. Color of this circle. |
| `alpha` | `number` (0-1) | Opaqueness of this circle. |
| `label` | `string` | Display a label on top of this element. By default, its baseline left-aligned to the center of the circle. The color of the label is determined by the `fill` property. |
| `label` | `string` | Display a label on top of this element. By default, its baseline left-aligned to the center of the circle. |
| `label-x` | `number` (px) | Offset the label by this amount horizontally. |
| `label-y` | `number` (px) | Offset the label by this amount vertically. |
| `label-size` | `number` (px) | Required if a label is defined. The font size of the label. `1px` makes the label about `1px` tall. |
| `label-color` | [`CSSColor`](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value)| Required if a label is defined. The color of the label. |

#### `path`

Expand Down

0 comments on commit 763f53b

Please sign in to comment.