Skip to content

Commit 61b3ce0

Browse files
committed
Simplify builder
1 parent 44d0407 commit 61b3ce0

File tree

1,003 files changed

+2617
-3935
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,003 files changed

+2617
-3935
lines changed

src/content/reference/en/JSON/stringify.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ description: >
1010
1111
The JSON.stringify() method converts a JavaScript object or value to a JSON <a
1212
href="#/p5/string">string</a>.</p>
13+
isConstructor: false
1314
line: 490
1415
params:
1516
- name: object
1617
description: |
1718
<p>:Javascript object that you would like to convert to JSON</p>
1819
type: Object
1920
itemtype: method
21+
alt: This example does not render anything
2022
class: JSON
2123
example:
2224
- |-
@@ -29,7 +31,6 @@ example:
2931
console.log(typeof myObjectAsString); // prints 'string' to the console
3032
</code>
3133
</div>
32-
alt: This example does not render anything
3334
chainable: false
3435
---
3536

src/content/reference/en/console/log.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ description: >
3636
values),
3737
3838
or it may be any one or more JavaScript <a href="#/p5/object">objects</a>.</p>
39+
isConstructor: false
3940
line: 512
4041
params:
4142
- name: message
4243
description: |
4344
<p>:Message that you would like to print to the console</p>
4445
type: String|Expression|Object
4546
itemtype: method
47+
alt: This example does not render anything
4648
class: console
4749
example:
4850
- |-
@@ -54,7 +56,6 @@ example:
5456
console.log(myNum + 12); // prints 17 to the console
5557
</code>
5658
</div>
57-
alt: This example does not render anything
5859
chainable: false
5960
---
6061

src/content/reference/en/p5.Amplitude/getLevel.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ file: lib/addons/p5.sound.js
66
description: |
77
<p>Returns a single Amplitude reading at the moment it is called.
88
For continuous readings, run in the draw loop.</p>
9+
isConstructor: false
910
line: 3209
1011
params:
1112
- name: channel

src/content/reference/en/p5.Amplitude/setInput.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ file: lib/addons/p5.sound.js
66
description: |
77
<p>Connects to the p5sound instance (main output) by default.
88
Optionally, you can pass in a specific source (i.e. a soundfile).</p>
9+
isConstructor: false
910
line: 3117
1011
params:
1112
- name: snd

src/content/reference/en/p5.Amplitude/smooth.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ file: lib/addons/p5.sound.js
66
description: |
77
<p>Smooth Amplitude analysis by averaging with the last analysis
88
frame. Off by default.</p>
9+
isConstructor: false
910
line: 3293
1011
params:
1112
- name: set

src/content/reference/en/p5.Amplitude/toggleNormalize.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ description: |
1212
if a louder moment occurs, the amount that Normalize adds to
1313
all the values will change. Accepts an optional boolean parameter
1414
(true or false). Normalizing is off by default.</p>
15+
isConstructor: false
1516
line: 3264
1617
params:
1718
- name: boolean

src/content/reference/en/p5.AudioIn/amp.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ submodule: p5.sound
55
file: lib/addons/p5.sound.js
66
description: |
77
<p>Set amplitude (volume) of a mic input between 0 and 1.0. <br/></p>
8+
isConstructor: false
89
line: 6257
910
params:
1011
- name: vol

src/content/reference/en/p5.AudioIn/amplitude.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ submodule: p5.sound
55
file: lib/addons/p5.sound.js
66
description: |
77
<p>Input amplitude, connect to it by default but not to master out</p>
8+
isConstructor: false
89
line: 6098
910
itemtype: property
1011
class: p5.AudioIn

src/content/reference/en/p5.AudioIn/connect.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ file: lib/addons/p5.sound.js
66
description: |
77
<p>Connect to an audio unit. If no parameter is provided, will
88
connect to the main output (i.e. your speakers).<br/></p>
9+
isConstructor: false
910
line: 6191
1011
params:
1112
- name: unit

src/content/reference/en/p5.AudioIn/currentSource.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module: p5.sound
44
submodule: p5.sound
55
file: lib/addons/p5.sound.js
66
description: ''
7+
isConstructor: false
78
line: 6085
89
itemtype: property
910
class: p5.AudioIn

src/content/reference/en/p5.AudioIn/disconnect.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ description: |
77
<p>Disconnect the AudioIn from all audio units. For example, if
88
connect() had been called, disconnect() will stop sending
99
signal to your speakers.<br/></p>
10+
isConstructor: false
1011
line: 6216
1112
itemtype: method
1213
class: p5.AudioIn

src/content/reference/en/p5.AudioIn/enabled.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ file: lib/addons/p5.sound.js
66
description: |
77
<p>Client must allow browser to access their microphone / audioin source.
88
Default: false. Will become true when the client enables access.</p>
9+
isConstructor: false
910
line: 6090
1011
itemtype: property
1112
class: p5.AudioIn

src/content/reference/en/p5.AudioIn/getLevel.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ description: |
99
make it easy to get a microphone's volume level. Accepts an
1010
optional smoothing value (0.0 < 1.0). <em>NOTE: AudioIn must
1111
.start() before using .getLevel().</em><br/></p>
12+
isConstructor: false
1213
line: 6234
1314
params:
1415
- name: smoothing

src/content/reference/en/p5.AudioIn/getSources.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ description: |
99
en-US/docs/Web/API/MediaDevices/enumerateDevices" target="_blank">
1010
MediaDevices.enumerateDevices() - Web APIs | MDN</a>
1111
and it returns a Promise.</p>
12+
isConstructor: false
1213
line: 6280
1314
params:
1415
- name: successCallback

src/content/reference/en/p5.AudioIn/input.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module: p5.sound
44
submodule: p5.sound
55
file: lib/addons/p5.sound.js
66
description: ''
7+
isConstructor: false
78
line: 6066
89
itemtype: property
910
class: p5.AudioIn

src/content/reference/en/p5.AudioIn/mediaStream.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module: p5.sound
44
submodule: p5.sound
55
file: lib/addons/p5.sound.js
66
description: ''
7+
isConstructor: false
78
line: 6080
89
itemtype: property
910
class: p5.AudioIn

src/content/reference/en/p5.AudioIn/output.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module: p5.sound
44
submodule: p5.sound
55
file: lib/addons/p5.sound.js
66
description: ''
7+
isConstructor: false
78
line: 6070
89
itemtype: property
910
class: p5.AudioIn

src/content/reference/en/p5.AudioIn/setSource.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ description: |
1010
<a href="https://developer.mozilla.org/
1111
en-US/docs/Web/API/MediaDevices/enumerateDevices" target="_blank">
1212
navigator.mediaDevices.enumerateDevices()</a></p>
13+
isConstructor: false
1314
line: 6340
1415
params:
1516
- name: num

src/content/reference/en/p5.AudioIn/start.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ description: |
1212
Chrome only allows access from localhost and over https. For this reason,
1313
you may want to include an errorCallback—a function that is called in case
1414
the browser won't provide mic access.</p>
15+
isConstructor: false
1516
line: 6114
1617
params:
1718
- name: successCallback

src/content/reference/en/p5.AudioIn/stop.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ file: lib/addons/p5.sound.js
66
description: |
77
<p>Turn the AudioIn off. If the AudioIn is stopped, it cannot getLevel().
88
If re-starting, the user may be prompted for permission access.</p>
9+
isConstructor: false
910
line: 6171
1011
itemtype: method
1112
class: p5.AudioIn

src/content/reference/en/p5.AudioIn/stream.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module: p5.sound
44
submodule: p5.sound
55
file: lib/addons/p5.sound.js
66
description: ''
7+
isConstructor: false
78
line: 6075
89
itemtype: property
910
class: p5.AudioIn

src/content/reference/en/p5.AudioVoice/connect.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ submodule: p5.sound
55
file: lib/addons/p5.sound.js
66
description: |
77
<p>Connect to p5 objects or Web Audio Nodes</p>
8+
isConstructor: false
89
line: 11181
910
params:
1011
- name: unit

src/content/reference/en/p5.AudioVoice/disconnect.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ submodule: p5.sound
55
file: lib/addons/p5.sound.js
66
description: |
77
<p>Disconnect from soundOut</p>
8+
isConstructor: false
89
line: 11194
910
itemtype: method
1011
class: p5.AudioVoice

src/content/reference/en/p5.Camera/camera.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ description: |
88
Accepts the same parameters as the global
99
<a href="#/p5/camera">camera()</a>.
1010
More information on this function can be found there.</p>
11+
isConstructor: false
1112
line: 1250
1213
itemtype: method
14+
alt: |-
15+
An interactive example of a red cube with 3 sliders for moving it across x, y,
16+
z axis and 3 sliders for shifting its center.
1317
class: p5.Camera
1418
example:
1519
- |-
@@ -85,9 +89,6 @@ example:
8589
}
8690
</code>
8791
</div>
88-
alt: |-
89-
An interactive example of a red cube with 3 sliders for moving it across x, y,
90-
z axis and 3 sliders for shifting its center.
9192
chainable: false
9293
---
9394

src/content/reference/en/p5.Camera/centerX.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ submodule: Camera
55
file: src/webgl/p5.Camera.js
66
description: |
77
<p>x coordinate representing center of the sketch</p>
8+
isConstructor: false
89
line: 580
910
itemtype: property
11+
alt: An example showing the use of camera object properties
1012
class: p5.Camera
1113
example:
1214
- |-
@@ -29,7 +31,6 @@ example:
2931
box(10);
3032
}
3133
</code></div>
32-
alt: An example showing the use of camera object properties
3334
chainable: false
3435
---
3536

src/content/reference/en/p5.Camera/centerY.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ submodule: Camera
55
file: src/webgl/p5.Camera.js
66
description: |
77
<p>y coordinate representing center of the sketch</p>
8+
isConstructor: false
89
line: 609
910
itemtype: property
11+
alt: An example showing the use of camera object properties
1012
class: p5.Camera
1113
example:
1214
- |-
@@ -29,7 +31,6 @@ example:
2931
box(10);
3032
}
3133
</code></div>
32-
alt: An example showing the use of camera object properties
3334
chainable: false
3435
---
3536

src/content/reference/en/p5.Camera/centerZ.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ submodule: Camera
55
file: src/webgl/p5.Camera.js
66
description: |
77
<p>z coordinate representing center of the sketch</p>
8+
isConstructor: false
89
line: 638
910
itemtype: property
11+
alt: An example showing the use of camera object properties
1012
class: p5.Camera
1113
example:
1214
- |-
@@ -29,7 +31,6 @@ example:
2931
box(10);
3032
}
3133
</code></div>
32-
alt: An example showing the use of camera object properties
3334
chainable: false
3435
---
3536

src/content/reference/en/p5.Camera/eyeX.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ submodule: Camera
55
file: src/webgl/p5.Camera.js
66
description: |
77
<p>camera position value on x axis. default value is 0</p>
8+
isConstructor: false
89
line: 495
910
itemtype: property
11+
alt: An example showing the use of camera object properties
1012
class: p5.Camera
1113
example:
1214
- |-
@@ -29,7 +31,6 @@ example:
2931
div.html('eyeX = ' + cam.eyeX);
3032
}
3133
</code></div>
32-
alt: An example showing the use of camera object properties
3334
chainable: false
3435
---
3536

src/content/reference/en/p5.Camera/eyeY.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ submodule: Camera
55
file: src/webgl/p5.Camera.js
66
description: |
77
<p>camera position value on y axis. default value is 0</p>
8+
isConstructor: false
89
line: 524
910
itemtype: property
11+
alt: An example showing the use of camera object properties
1012
class: p5.Camera
1113
example:
1214
- |-
@@ -28,7 +30,6 @@ example:
2830
div.html('eyeY = ' + cam.eyeY);
2931
}
3032
</code></div>
31-
alt: An example showing the use of camera object properties
3233
chainable: false
3334
---
3435

src/content/reference/en/p5.Camera/eyeZ.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ submodule: Camera
55
file: src/webgl/p5.Camera.js
66
description: |
77
<p>camera position value on z axis. default value is 800</p>
8+
isConstructor: false
89
line: 552
910
itemtype: property
11+
alt: An example showing the use of camera object properties
1012
class: p5.Camera
1113
example:
1214
- |-
@@ -28,7 +30,6 @@ example:
2830
div.html('eyeZ = ' + cam.eyeZ);
2931
}
3032
</code></div>
31-
alt: An example showing the use of camera object properties
3233
chainable: false
3334
---
3435

src/content/reference/en/p5.Camera/frustum.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ description: |
88
Accepts the same parameters as the global
99
<a href="#/p5/frustum">frustum()</a>.
1010
More information on this function can be found there.</p>
11+
isConstructor: false
1112
line: 930
1213
itemtype: method
14+
alt: >-
15+
two 3D boxes move back and forth along same plane, rotating as mouse is
16+
dragged.
1317
class: p5.Camera
1418
example:
1519
- |-
@@ -46,9 +50,6 @@ example:
4650
}
4751
</code>
4852
</div>
49-
alt: >-
50-
two 3D boxes move back and forth along same plane, rotating as mouse is
51-
dragged.
5253
chainable: false
5354
---
5455

0 commit comments

Comments
 (0)