Skip to content

Commit 59bf6dd

Browse files
committed
CCapture commenting
1 parent fa24113 commit 59bf6dd

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ This repository includes projects from p5.js, manim.js, katex.js, physics.js and
77

88
[Go to webpage!](https://two-ticks.github.io/p5js-projects/)
99

10+
[sampling](https://two-ticks.github.io/p5js-projects/sampling)
11+
12+
[frequency_domain_shifting](https://two-ticks.github.io/p5js-projects/frequency_domain_shifting)
13+
14+
[multiplication_by_cosine](https://two-ticks.github.io/p5js-projects/multiplication_by_cosine)
15+
16+
[Go to webpage!](https://two-ticks.github.io/p5js-projects/)
17+
1018
[katex editor!](https://two-ticks.github.io/p5js-projects/katex-editor.html)
1119
## How to run a sketch
1220
To run a sketch change the following code present in index.html file.

sketches/sampling.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//CCapture
2-
const capturer = new CCapture({
3-
framerate : 30,
4-
format : "webm",
5-
name: "movie",
6-
quality: 100,
7-
verbose: true,
8-
});
2+
// const capturer = new CCapture({
3+
// framerate : 30,
4+
// format : "webm",
5+
// name: "movie",
6+
// quality: 100,
7+
// verbose: true,
8+
// });
99

1010
let p5Canvas;
1111

@@ -17,7 +17,7 @@ function setup() {
1717
}
1818

1919
function draw() {
20-
if (frameCount === 1) capturer.start();
20+
//if (frameCount === 1) capturer.start();
2121

2222
background(50);
2323

@@ -150,13 +150,13 @@ function draw() {
150150
}
151151

152152
//saving after specified frames
153-
capturer.capture(p5Canvas.canvas);
154-
if (frameCount === 1) //frame to stop
155-
{
156-
noLoop();
157-
capturer.stop();
158-
capturer.save();
159-
}
153+
// capturer.capture(p5Canvas.canvas);
154+
// if (frameCount === 1) //frame to stop
155+
// {
156+
// noLoop();
157+
// capturer.stop();
158+
// capturer.save();
159+
// }
160160
}
161161

162162
function graph() {

0 commit comments

Comments
 (0)