Skip to content

Commit

Permalink
Simplify builder
Browse files Browse the repository at this point in the history
  • Loading branch information
stalgiag committed Feb 29, 2024
1 parent 44d0407 commit 61b3ce0
Show file tree
Hide file tree
Showing 1,003 changed files with 2,617 additions and 3,935 deletions.
3 changes: 2 additions & 1 deletion src/content/reference/en/JSON/stringify.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ description: >
The JSON.stringify() method converts a JavaScript object or value to a JSON <a
href="#/p5/string">string</a>.</p>
isConstructor: false
line: 490
params:
- name: object
description: |
<p>:Javascript object that you would like to convert to JSON</p>
type: Object
itemtype: method
alt: This example does not render anything
class: JSON
example:
- |-
Expand All @@ -29,7 +31,6 @@ example:
console.log(typeof myObjectAsString); // prints 'string' to the console
</code>
</div>
alt: This example does not render anything
chainable: false
---

Expand Down
3 changes: 2 additions & 1 deletion src/content/reference/en/console/log.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ description: >
values),
or it may be any one or more JavaScript <a href="#/p5/object">objects</a>.</p>
isConstructor: false
line: 512
params:
- name: message
description: |
<p>:Message that you would like to print to the console</p>
type: String|Expression|Object
itemtype: method
alt: This example does not render anything
class: console
example:
- |-
Expand All @@ -54,7 +56,6 @@ example:
console.log(myNum + 12); // prints 17 to the console
</code>
</div>
alt: This example does not render anything
chainable: false
---

Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.Amplitude/getLevel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ file: lib/addons/p5.sound.js
description: |
<p>Returns a single Amplitude reading at the moment it is called.
For continuous readings, run in the draw loop.</p>
isConstructor: false
line: 3209
params:
- name: channel
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.Amplitude/setInput.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ file: lib/addons/p5.sound.js
description: |
<p>Connects to the p5sound instance (main output) by default.
Optionally, you can pass in a specific source (i.e. a soundfile).</p>
isConstructor: false
line: 3117
params:
- name: snd
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.Amplitude/smooth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ file: lib/addons/p5.sound.js
description: |
<p>Smooth Amplitude analysis by averaging with the last analysis
frame. Off by default.</p>
isConstructor: false
line: 3293
params:
- name: set
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.Amplitude/toggleNormalize.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ description: |
if a louder moment occurs, the amount that Normalize adds to
all the values will change. Accepts an optional boolean parameter
(true or false). Normalizing is off by default.</p>
isConstructor: false
line: 3264
params:
- name: boolean
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/amp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ submodule: p5.sound
file: lib/addons/p5.sound.js
description: |
<p>Set amplitude (volume) of a mic input between 0 and 1.0. <br/></p>
isConstructor: false
line: 6257
params:
- name: vol
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/amplitude.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ submodule: p5.sound
file: lib/addons/p5.sound.js
description: |
<p>Input amplitude, connect to it by default but not to master out</p>
isConstructor: false
line: 6098
itemtype: property
class: p5.AudioIn
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/connect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ file: lib/addons/p5.sound.js
description: |
<p>Connect to an audio unit. If no parameter is provided, will
connect to the main output (i.e. your speakers).<br/></p>
isConstructor: false
line: 6191
params:
- name: unit
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/currentSource.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module: p5.sound
submodule: p5.sound
file: lib/addons/p5.sound.js
description: ''
isConstructor: false
line: 6085
itemtype: property
class: p5.AudioIn
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/disconnect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description: |
<p>Disconnect the AudioIn from all audio units. For example, if
connect() had been called, disconnect() will stop sending
signal to your speakers.<br/></p>
isConstructor: false
line: 6216
itemtype: method
class: p5.AudioIn
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/enabled.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ file: lib/addons/p5.sound.js
description: |
<p>Client must allow browser to access their microphone / audioin source.
Default: false. Will become true when the client enables access.</p>
isConstructor: false
line: 6090
itemtype: property
class: p5.AudioIn
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/getLevel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ description: |
make it easy to get a microphone's volume level. Accepts an
optional smoothing value (0.0 < 1.0). <em>NOTE: AudioIn must
.start() before using .getLevel().</em><br/></p>
isConstructor: false
line: 6234
params:
- name: smoothing
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/getSources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ description: |
en-US/docs/Web/API/MediaDevices/enumerateDevices" target="_blank">
MediaDevices.enumerateDevices() - Web APIs | MDN</a>
and it returns a Promise.</p>
isConstructor: false
line: 6280
params:
- name: successCallback
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/input.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module: p5.sound
submodule: p5.sound
file: lib/addons/p5.sound.js
description: ''
isConstructor: false
line: 6066
itemtype: property
class: p5.AudioIn
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/mediaStream.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module: p5.sound
submodule: p5.sound
file: lib/addons/p5.sound.js
description: ''
isConstructor: false
line: 6080
itemtype: property
class: p5.AudioIn
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/output.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module: p5.sound
submodule: p5.sound
file: lib/addons/p5.sound.js
description: ''
isConstructor: false
line: 6070
itemtype: property
class: p5.AudioIn
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/setSource.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ description: |
<a href="https://developer.mozilla.org/
en-US/docs/Web/API/MediaDevices/enumerateDevices" target="_blank">
navigator.mediaDevices.enumerateDevices()</a></p>
isConstructor: false
line: 6340
params:
- name: num
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ description: |
Chrome only allows access from localhost and over https. For this reason,
you may want to include an errorCallback—a function that is called in case
the browser won't provide mic access.</p>
isConstructor: false
line: 6114
params:
- name: successCallback
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/stop.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ file: lib/addons/p5.sound.js
description: |
<p>Turn the AudioIn off. If the AudioIn is stopped, it cannot getLevel().
If re-starting, the user may be prompted for permission access.</p>
isConstructor: false
line: 6171
itemtype: method
class: p5.AudioIn
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioIn/stream.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module: p5.sound
submodule: p5.sound
file: lib/addons/p5.sound.js
description: ''
isConstructor: false
line: 6075
itemtype: property
class: p5.AudioIn
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioVoice/connect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ submodule: p5.sound
file: lib/addons/p5.sound.js
description: |
<p>Connect to p5 objects or Web Audio Nodes</p>
isConstructor: false
line: 11181
params:
- name: unit
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/en/p5.AudioVoice/disconnect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ submodule: p5.sound
file: lib/addons/p5.sound.js
description: |
<p>Disconnect from soundOut</p>
isConstructor: false
line: 11194
itemtype: method
class: p5.AudioVoice
Expand Down
7 changes: 4 additions & 3 deletions src/content/reference/en/p5.Camera/camera.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ description: |
Accepts the same parameters as the global
<a href="#/p5/camera">camera()</a>.
More information on this function can be found there.</p>
isConstructor: false
line: 1250
itemtype: method
alt: |-
An interactive example of a red cube with 3 sliders for moving it across x, y,
z axis and 3 sliders for shifting its center.
class: p5.Camera
example:
- |-
Expand Down Expand Up @@ -85,9 +89,6 @@ example:
}
</code>
</div>
alt: |-
An interactive example of a red cube with 3 sliders for moving it across x, y,
z axis and 3 sliders for shifting its center.
chainable: false
---

Expand Down
3 changes: 2 additions & 1 deletion src/content/reference/en/p5.Camera/centerX.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ submodule: Camera
file: src/webgl/p5.Camera.js
description: |
<p>x coordinate representing center of the sketch</p>
isConstructor: false
line: 580
itemtype: property
alt: An example showing the use of camera object properties
class: p5.Camera
example:
- |-
Expand All @@ -29,7 +31,6 @@ example:
box(10);
}
</code></div>
alt: An example showing the use of camera object properties
chainable: false
---

Expand Down
3 changes: 2 additions & 1 deletion src/content/reference/en/p5.Camera/centerY.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ submodule: Camera
file: src/webgl/p5.Camera.js
description: |
<p>y coordinate representing center of the sketch</p>
isConstructor: false
line: 609
itemtype: property
alt: An example showing the use of camera object properties
class: p5.Camera
example:
- |-
Expand All @@ -29,7 +31,6 @@ example:
box(10);
}
</code></div>
alt: An example showing the use of camera object properties
chainable: false
---

Expand Down
3 changes: 2 additions & 1 deletion src/content/reference/en/p5.Camera/centerZ.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ submodule: Camera
file: src/webgl/p5.Camera.js
description: |
<p>z coordinate representing center of the sketch</p>
isConstructor: false
line: 638
itemtype: property
alt: An example showing the use of camera object properties
class: p5.Camera
example:
- |-
Expand All @@ -29,7 +31,6 @@ example:
box(10);
}
</code></div>
alt: An example showing the use of camera object properties
chainable: false
---

Expand Down
3 changes: 2 additions & 1 deletion src/content/reference/en/p5.Camera/eyeX.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ submodule: Camera
file: src/webgl/p5.Camera.js
description: |
<p>camera position value on x axis. default value is 0</p>
isConstructor: false
line: 495
itemtype: property
alt: An example showing the use of camera object properties
class: p5.Camera
example:
- |-
Expand All @@ -29,7 +31,6 @@ example:
div.html('eyeX = ' + cam.eyeX);
}
</code></div>
alt: An example showing the use of camera object properties
chainable: false
---

Expand Down
3 changes: 2 additions & 1 deletion src/content/reference/en/p5.Camera/eyeY.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ submodule: Camera
file: src/webgl/p5.Camera.js
description: |
<p>camera position value on y axis. default value is 0</p>
isConstructor: false
line: 524
itemtype: property
alt: An example showing the use of camera object properties
class: p5.Camera
example:
- |-
Expand All @@ -28,7 +30,6 @@ example:
div.html('eyeY = ' + cam.eyeY);
}
</code></div>
alt: An example showing the use of camera object properties
chainable: false
---

Expand Down
3 changes: 2 additions & 1 deletion src/content/reference/en/p5.Camera/eyeZ.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ submodule: Camera
file: src/webgl/p5.Camera.js
description: |
<p>camera position value on z axis. default value is 800</p>
isConstructor: false
line: 552
itemtype: property
alt: An example showing the use of camera object properties
class: p5.Camera
example:
- |-
Expand All @@ -28,7 +30,6 @@ example:
div.html('eyeZ = ' + cam.eyeZ);
}
</code></div>
alt: An example showing the use of camera object properties
chainable: false
---

Expand Down
7 changes: 4 additions & 3 deletions src/content/reference/en/p5.Camera/frustum.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ description: |
Accepts the same parameters as the global
<a href="#/p5/frustum">frustum()</a>.
More information on this function can be found there.</p>
isConstructor: false
line: 930
itemtype: method
alt: >-
two 3D boxes move back and forth along same plane, rotating as mouse is
dragged.
class: p5.Camera
example:
- |-
Expand Down Expand Up @@ -46,9 +50,6 @@ example:
}
</code>
</div>
alt: >-
two 3D boxes move back and forth along same plane, rotating as mouse is
dragged.
chainable: false
---

Expand Down
Loading

0 comments on commit 61b3ce0

Please sign in to comment.