@thi.ng/pixel
Advanced tools
Comparing version 6.1.14 to 6.1.15
# Change Log | ||
- **Last updated**: 2024-03-01T15:22:50Z | ||
- **Last updated**: 2024-03-02T14:05:53Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "@thi.ng/pixel", | ||
"version": "6.1.14", | ||
"version": "6.1.15", | ||
"description": "Typedarray integer & float pixel buffers w/ customizable formats, blitting, drawing, convolution", | ||
@@ -42,7 +42,7 @@ "type": "module", | ||
"@thi.ng/checks": "^3.5.1", | ||
"@thi.ng/distance": "^2.4.56", | ||
"@thi.ng/distance": "^2.4.57", | ||
"@thi.ng/errors": "^2.4.19", | ||
"@thi.ng/k-means": "^0.6.71", | ||
"@thi.ng/k-means": "^0.6.72", | ||
"@thi.ng/math": "^5.10.4", | ||
"@thi.ng/porter-duff": "^2.1.69" | ||
"@thi.ng/porter-duff": "^2.1.70" | ||
}, | ||
@@ -223,3 +223,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\n" | ||
"gitHead": "df9e312af741d87e6b450afcfea6a6e381662b1e\n" | ||
} |
@@ -141,2 +141,4 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
```ts | ||
import { intBuffer, defSampler, ABGR8888 } from "@thi.ng/pixel"; | ||
const src = intBuffer(4, 4, ABGR8888); | ||
@@ -279,2 +281,6 @@ | ||
```ts | ||
import { floatBuffer, dominantColors, FLOAT_RGB } from "@thi.ng/pixel"; | ||
import { read } from "@thi.ng/pixel-io-netpbm"; | ||
import { readFileSync } from "fs"; | ||
// read test PPM image and convert into float RGB format | ||
@@ -281,0 +287,0 @@ const img = floatBuffer(read(readFileSync(`test.ppm`)), FLOAT_RGB); |
175564
481
Updated@thi.ng/distance@^2.4.57
Updated@thi.ng/k-means@^0.6.72
Updated@thi.ng/porter-duff@^2.1.70