@thi.ng/rasterize 1.0.22 → 1.0.23

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +12 -12
  3. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-03-02T18:09:03Z
3
+ - **Last updated**: 2023-03-09T13:01:59Z
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.
package/README.md CHANGED
@@ -41,41 +41,41 @@ shader-like](#custom-shaders) functions to produce "pixel" values.
41
41
 
42
42
  ### Circle
43
43
 
44
- - [`drawCircle()`](https://docs.thi.ng/umbrella/rasterize/modules.html#drawCircle):
44
+ - [`drawCircle()`](https://docs.thi.ng/umbrella/rasterize/functions/drawCircle.html):
45
45
  Filled or outline implementation of [Bresenham's circle
46
46
  algorithm](https://en.wikipedia.org/wiki/Midpoint_circle_algorithm), with
47
47
  clipping.
48
48
 
49
49
  ### Line
50
50
 
51
- - [`drawLine()`](https://docs.thi.ng/umbrella/rasterize/modules.html#drawLine):
51
+ - [`drawLine()`](https://docs.thi.ng/umbrella/rasterize/functions/drawLine.html):
52
52
  Implementation of [Bresenham's line
53
53
  algorithm](https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm) with
54
54
  pre-applied [Liang-Barsky
55
55
  clipping](https://en.wikipedia.org/wiki/Liang%E2%80%93Barsky_algorithm)
56
- - [`traceLine()`](https://docs.thi.ng/umbrella/rasterize/modules.html#traceLine):
56
+ - [`traceLine()`](https://docs.thi.ng/umbrella/rasterize/functions/traceLine.html):
57
57
  Apply custom functions to trace the line
58
58
 
59
59
  ### Polygon / polyline
60
60
 
61
61
  Filled or outline drawing of polygons (without holes):
62
62
 
63
- - [`drawPolyline()`](https://docs.thi.ng/umbrella/rasterize/modules.html#drawPolyline)
64
- - [`fillPoly()`](https://docs.thi.ng/umbrella/rasterize/modules.html#fillPoly)
63
+ - [`drawPolyline()`](https://docs.thi.ng/umbrella/rasterize/functions/drawPolyline.html)
64
+ - [`fillPoly()`](https://docs.thi.ng/umbrella/rasterize/functions/fillPoly.html)
65
65
 
66
66
  ### Rect
67
67
 
68
- - [`drawRect()`](https://docs.thi.ng/umbrella/rasterize/modules.html#drawRect):
68
+ - [`drawRect()`](https://docs.thi.ng/umbrella/rasterize/functions/drawRect.html):
69
69
  Filled or outline implementation with pre-applied clipping against the target
70
70
  grid.
71
71
 
72
72
  ### Flood fill
73
73
 
74
- - [`floodFill()`](https://docs.thi.ng/umbrella/rasterize/modules.html#floodFill):
74
+ - [`floodFill()`](https://docs.thi.ng/umbrella/rasterize/functions/floodFill.html):
75
75
  Fills grid in the connected region around `x,y` with given value or shader
76
76
 
77
77
  Also see corresponding function in
78
- [@thi.ng/grid-iterators](https://docs.thi.ng/umbrella/grid-iterators/modules.html#floodFill).
78
+ [@thi.ng/grid-iterators](https://docs.thi.ng/umbrella/grid-iterators/functions/floodFill.html).
79
79
 
80
80
  ## Custom shaders
81
81
 
@@ -88,15 +88,15 @@ draw call.
88
88
 
89
89
  The following shader functions are provided:
90
90
 
91
- - [`defPattern()`](https://docs.thi.ng/umbrella/rasterize/modules.html#defPattern):
91
+ - [`defPattern()`](https://docs.thi.ng/umbrella/rasterize/functions/defPattern.html):
92
92
  pattern fill (must be same format as target grid)
93
- - [`defStripes()`](https://docs.thi.ng/umbrella/rasterize/modules.html#defStripes):
93
+ - [`defStripes()`](https://docs.thi.ng/umbrella/rasterize/functions/defStripes.html):
94
94
  procedural stripes (configurable)
95
- - [`defNoise()`](https://docs.thi.ng/umbrella/rasterize/modules.html#defNoise):
95
+ - [`defNoise()`](https://docs.thi.ng/umbrella/rasterize/functions/defNoise.html):
96
96
  random noise pattern (configurable)
97
97
 
98
98
  As an example, here's a simple custom UV gradient shader for drawing into a
99
- [float RGBA](https://docs.thi.ng/umbrella/pixel/modules.html#floatBuffer)
99
+ [float RGBA](https://docs.thi.ng/umbrella/pixel/functions/floatBuffer.html)
100
100
  buffer:
101
101
 
102
102
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rasterize",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "2D shape drawing & rasterization",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -37,14 +37,14 @@
37
37
  "@thi.ng/api": "^8.7.3",
38
38
  "@thi.ng/checks": "^3.3.9",
39
39
  "@thi.ng/equiv": "^2.1.19",
40
- "@thi.ng/grid-iterators": "^3.0.9",
40
+ "@thi.ng/grid-iterators": "^3.0.10",
41
41
  "@thi.ng/porter-duff": "^2.1.27",
42
42
  "@thi.ng/random": "^3.3.26",
43
- "@thi.ng/transducers": "^8.3.36"
43
+ "@thi.ng/transducers": "^8.3.37"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@microsoft/api-extractor": "^7.34.2",
47
- "@thi.ng/testament": "^0.3.11",
47
+ "@thi.ng/testament": "^0.3.12",
48
48
  "rimraf": "^4.1.2",
49
49
  "tools": "^0.0.1",
50
50
  "typedoc": "^0.23.24",
@@ -119,5 +119,5 @@
119
119
  "status": "alpha",
120
120
  "year": 2021
121
121
  },
122
- "gitHead": "8342900eedc77bb09edb8c544804578b71f8acc6\n"
122
+ "gitHead": "8ab2cbfe2f59b7ef672b6e1cf2a43368f8437ddf\n"
123
123
  }