Skip to content

Commit 4cc25dd

Browse files
authored
fixing as per suggestions
1 parent 0e9bc00 commit 4cc25dd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/core/constants.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const VERSION = 'VERSION_WILL_BE_REPLACED_BY_BUILD';
1717
/**
1818
* The default, two-dimensional renderer in p5.js.
1919
*
20-
* Use this when calling {@link p5.createCanvas|createCanvas} (for example,
20+
* Use this when calling <a href="#/p5/createCanvas"> (for example,
2121
* `createCanvas(400, 400, P2D)`) to specify a 2D context.
2222
*
2323
* @typedef {'p2d'} P2D
@@ -30,14 +30,16 @@ export const P2D = 'p2d';
3030
* A high-dynamic-range (HDR) variant of the default, two-dimensional renderer.
3131
*
3232
* When available, this mode can allow for extended color ranges and more
33-
* dynamic color representation. Use it similarly to {@link p5.P2D}:
33+
* dynamic color representation. Use it similarly to `P2D`:
3434
* `createCanvas(400, 400, P2DHDR)`.
3535
*
3636
* @typedef {'p2d-hdr'} P2DHDR
3737
* @property {P2DHDR} P2DHDR
3838
* @final
3939
*/
4040

41+
export const P2DHDR = 'p2d-hdr';
42+
4143
/**
4244
* One of the two render modes in p5.js, used for computationally intensive tasks like 3D rendering and shaders.
4345
*

0 commit comments

Comments
 (0)