Skip to content

Commit

Permalink
docs(geom-sdf): update readme/assets
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jun 20, 2022
1 parent cc72bab commit aa821e2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
Binary file added assets/geom-sdf/metaballs-rect-smooth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/geom-sdf/metaballs-rect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/geom-sdf/metaballs-smooth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/geom-sdf/metaballs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions packages/geom-sdf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ node --experimental-repl-await
> const geomSdf = await import("@thi.ng/geom-sdf");
```

Package sizes (gzipped, pre-treeshake): ESM: 2.61 KB
Package sizes (gzipped, pre-treeshake): ESM: 2.63 KB

## Dependencies

Expand Down Expand Up @@ -130,9 +130,11 @@ writeFileSync(

Results:

| using `circle()` | using `rect()` |
|------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|
| ![metaballs based on circles](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/geom-sdf/metaballs.png) | ![metaballs based on rectangles](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/geom-sdf/metaballs-rect.png) |
| `circle()` | `rect()` |
|------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|
| ![metaballs based on circles](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/geom-sdf/metaballs.png) | ![metaballs based on rectangles](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/geom-sdf/metaballs-rect.png) |
| `circle()` (smooth) | `rect()` (smooth) |
| ![metaballs w/ smooth union](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/geom-sdf/metaballs-smooth.png) | ![metaballs w/ smooth union](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/geom-sdf/metaballs-rect-smooth.png) |

## Authors

Expand Down
8 changes: 5 additions & 3 deletions packages/geom-sdf/tpl.readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ writeFileSync(

Results:

| using `circle()` | using `rect()` |
|------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|
| ![metaballs based on circles](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/geom-sdf/metaballs.png) | ![metaballs based on rectangles](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/geom-sdf/metaballs-rect.png) |
| `circle()` | `rect()` |
|------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|
| ![metaballs based on circles](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/geom-sdf/metaballs.png) | ![metaballs based on rectangles](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/geom-sdf/metaballs-rect.png) |
| `circle()` (smooth) | `rect()` (smooth) |
| ![metaballs w/ smooth union](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/geom-sdf/metaballs-smooth.png) | ![metaballs w/ smooth union](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/geom-sdf/metaballs-rect-smooth.png) |

## Authors

Expand Down

0 comments on commit aa821e2

Please sign in to comment.