@thi.ng/rasterize 1.0.34 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-08-04T10:58:19Z
3
+ - **Last updated**: 2023-08-12T13:14:08Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [1.0.37](https://github.com/thi-ng/umbrella/tree/@thi.ng/rasterize@1.0.37) (2023-08-12)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update .probability() call sites in various pkgs ([c8c8141](https://github.com/thi-ng/umbrella/commit/c8c8141))
17
+
12
18
  ### [1.0.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/rasterize@1.0.13) (2022-12-22)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
+ <!-- Please see: https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md#changes-to-readme-files -->
2
3
 
3
- # ![@thi.ng/rasterize](https://media.thi.ng/umbrella/banners-20220914/thing-rasterize.svg?75411efe)
4
+ # ![@thi.ng/rasterize](https://media.thi.ng/umbrella/banners-20230807/thing-rasterize.svg?75411efe)
4
5
 
5
6
  [![npm version](https://img.shields.io/npm/v/@thi.ng/rasterize.svg)](https://www.npmjs.com/package/@thi.ng/rasterize)
6
7
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/rasterize.svg)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rasterize",
3
- "version": "1.0.34",
3
+ "version": "1.0.37",
4
4
  "description": "2D shape drawing & rasterization",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,17 +34,17 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.9.0",
38
- "@thi.ng/checks": "^3.4.0",
39
- "@thi.ng/equiv": "^2.1.25",
40
- "@thi.ng/grid-iterators": "^4.0.6",
41
- "@thi.ng/porter-duff": "^2.1.36",
42
- "@thi.ng/random": "^3.5.1",
43
- "@thi.ng/transducers": "^8.5.0"
37
+ "@thi.ng/api": "^8.9.3",
38
+ "@thi.ng/checks": "^3.4.3",
39
+ "@thi.ng/equiv": "^2.1.28",
40
+ "@thi.ng/grid-iterators": "^4.0.9",
41
+ "@thi.ng/porter-duff": "^2.1.39",
42
+ "@thi.ng/random": "^3.6.0",
43
+ "@thi.ng/transducers": "^8.5.3"
44
44
  },
45
45
  "devDependencies": {
46
- "@microsoft/api-extractor": "^7.36.3",
47
- "@thi.ng/testament": "^0.3.18",
46
+ "@microsoft/api-extractor": "^7.36.4",
47
+ "@thi.ng/testament": "^0.3.21",
48
48
  "rimraf": "^5.0.1",
49
49
  "tools": "^0.0.1",
50
50
  "typedoc": "^0.24.8",
@@ -119,5 +119,5 @@
119
119
  "status": "alpha",
120
120
  "year": 2021
121
121
  },
122
- "gitHead": "9fa3f7f8169efa30e3c71b43c82f77393581c3b5\n"
122
+ "gitHead": "399f8c53d66b9b763d16c21bb59f145df5f59514\n"
123
123
  }
package/shader.js CHANGED
@@ -16,7 +16,7 @@ export const defNoise = (opts) => {
16
16
  rnd: SYSTEM,
17
17
  ...opts,
18
18
  };
19
- return () => (rnd.float() < probability ? a : b);
19
+ return () => (rnd.probability(probability) ? a : b);
20
20
  };
21
21
  /**
22
22
  * Defines a shader (for floating point target buffers) which blends given color