Skip to content

Commit 9846f10

Browse files
fix: fix merge mistake
1 parent 7c1fc12 commit 9846f10

File tree

13 files changed

+100
-139
lines changed

13 files changed

+100
-139
lines changed

contributor_docs/ko/method.example.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* "이것은 메소드의 인라인 문서 템플릿입니다. 이 템플릿을 사용하려면 큰 따옴표
2+
* "이것은 메소드의 인라인 문서 템플릿입니다. 이 템플릿을 사용하려면 큰 따옴표
33
* 사이의 모든 텍스트를 제거하십시오. 메소드에 대한 일부 설명은 여기에 들어갑니다.
44
* 간단한 단어로 함수가 하는 일과 그에 대한 좋은/나쁜 사용 예를 설명하십시오.
55
* 만약 비정상적인 케이스나 경고가 있다면 여기에서 설명해 주세요."
@@ -31,7 +31,7 @@
3131
* "두 번째 예시를 명확히 설명하는 줄입니다"
3232
*/
3333

34-
// "메소드에 둘 이상의 특징이 있으면, 각 특징은 다음과 같은 파라미터 설명과 함께
34+
// "메소드에 둘 이상의 특징이 있으면, 각 특징은 다음과 같은 파라미터 설명과 함께
3535
// 자체 블록에 문서화할 수 있습니다."
3636
/**
3737
* @method "메소드명"
@@ -46,11 +46,11 @@ p5.prototype.methodName = function() {
4646

4747
// 이 부분은 템플릿을 채운 예시입니다.
4848
/**
49-
* <a href="#/p5/background">background()</a> 함수는 p5.js 캔버스의 배경 색상을
50-
* 설정합니다. 이 함수는 일반적으로 draw()에서 각 프레임의 시작 부분에 디스플레이
51-
* 윈도우를 지우는 데 사용되지만, 애니메이션의 첫 번째 프레임에 배경색을 설정하거나
49+
* <a href="#/p5/background">background()</a> 함수는 p5.js 캔버스의 배경 색상을
50+
* 설정합니다. 이 함수는 일반적으로 draw()에서 각 프레임의 시작 부분에 디스플레이
51+
* 윈도우를 지우는 데 사용되지만, 애니메이션의 첫 번째 프레임에 배경색을 설정하거나
5252
* 배경을 한 번만 설정해야 할 경우 setup() 내에서 사용할 수 있습니다.
53-
*
53+
*
5454
* 배경색 기본 설정은 투명입니다.
5555
*
5656
* @method background
@@ -81,7 +81,7 @@ p5.prototype.methodName = function() {
8181
/**
8282
* @method background
8383
* @param {String} 문자열 형태의 색상 설정에 사용할 수 있는 형식:
84-
정수, rgb(), rgba(), rgb() 비율, rgba() 비율,
84+
정수, rgb(), rgba(), rgb() 비율, rgba() 비율,
8585
3자리 16진법, 6자리 16진법,
8686
* @param {Number} [a]
8787
* @chainable

contributor_docs/project_wrapups/slominski_gsoc_2022.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ The tutorials can be found on the p5.js websites Learn section here (to be added
4747

4848
And the code and commits for these contributions can be found at (to be added):
4949

50-
##Acknowledgements
50+
## Acknowledgements
5151

5252
I want to express my gratitude towards my mentor Kate Hollenbach for her guidance throughout this project, as well as towards the p5.js community for its openness and helpfulness.

src/color/p5.Color.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const map = (n, start1, stop1, start2, stop2, clamp) => {
3737
result = Math.min(result, Math.max(start2, stop2));
3838
}
3939
return result;
40-
}
40+
};
4141

4242
const serializationMap = {};
4343

@@ -547,11 +547,11 @@ class Color {
547547
let coords = structuredClone(to(this._color, 'srgb').coords);
548548
coords.push(this._color.alpha);
549549

550-
const rangeMaxes = maxes.map((v) => {
550+
const rangeMaxes = maxes.map(v => {
551551
if(!Array.isArray(v)){
552552
return [0, v];
553553
}else{
554-
return v
554+
return v;
555555
}
556556
});
557557

src/core/friendly_errors/sketch_verifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const ignoreFunction = [
2424
'keyPressed',
2525
'keyReleased',
2626
'keyTyped',
27-
'windowResized',
27+
'windowResized'
2828
// 'name',
2929
// 'parent',
3030
// 'toString',

src/image/filterRenderer2D.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ class FilterRenderer2D {
257257

258258

259259
const identityMatrix = [1, 0, 0, 0,
260-
0, 1, 0, 0,
261-
0, 0, 1, 0,
262-
0, 0, 0, 1];
260+
0, 1, 0, 0,
261+
0, 0, 1, 0,
262+
0, 0, 0, 1];
263263
this._shader.setUniform('uModelViewMatrix', identityMatrix);
264264
this._shader.setUniform('uProjectionMatrix', identityMatrix);
265265

src/shape/curves.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -517,22 +517,22 @@ function curves(p5, fn){
517517
* function setup() {
518518
* createCanvas(200, 200);
519519
* background(245);
520-
*
520+
*
521521
* // Ensure the curve includes both end spans p0->p1 and p2->p3
522522
* splineProperty('ends', INCLUDE);
523-
*
523+
*
524524
* // Control / anchor points
525525
* const p0 = createVector(30, 160);
526526
* const p1 = createVector(60, 40);
527527
* const p2 = createVector(140, 40);
528528
* const p3 = createVector(170, 160);
529-
*
529+
*
530530
* // Draw the spline that passes through ALL four points (INCLUDE)
531531
* noFill();
532532
* stroke(0);
533533
* strokeWeight(2);
534534
* spline(p0.x, p0.y, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y);
535-
*
535+
*
536536
* // Draw markers + labels
537537
* fill(255);
538538
* stroke(0);
@@ -541,19 +541,19 @@ function curves(p5, fn){
541541
* circle(p1.x, p1.y, r);
542542
* circle(p2.x, p2.y, r);
543543
* circle(p3.x, p3.y, r);
544-
*
544+
*
545545
* noStroke();
546546
* fill(0);
547547
* text('p0', p0.x - 14, p0.y + 14);
548548
* text('p1', p1.x - 14, p1.y - 8);
549549
* text('p2', p2.x + 4, p2.y - 8);
550550
* text('p3', p3.x + 4, p3.y + 14);
551-
*
551+
*
552552
* describe('A black Catmull-Rom spline passes through p0, p1, p2, p3 with endpoints included.');
553553
* }
554554
* </code>
555555
* </div>
556-
*
556+
*
557557
* <div>
558558
* <code>
559559
* function setup() {
@@ -848,45 +848,45 @@ function curves(p5, fn){
848848
* }
849849
* </code>
850850
* </div>
851-
*
851+
*
852852
* <div>
853853
* <code>
854854
* let p0, p1, p2, p3;
855-
*
855+
*
856856
* function setup() {
857857
* createCanvas(200, 200);
858858
* splineProperty('ends', INCLUDE); // make endpoints part of the curve
859-
*
859+
*
860860
* // Four points forming a gentle arch
861861
* p0 = createVector(30, 160);
862862
* p1 = createVector(60, 50);
863863
* p2 = createVector(140, 50);
864864
* p3 = createVector(170, 160);
865-
*
865+
*
866866
* describe('Black spline through p0–p3. A red dot marks the location at parameter t on p1->p2 using splinePoint.');
867867
* }
868-
*
868+
*
869869
* function draw() {
870870
* background(245);
871-
*
871+
*
872872
* // Draw the spline for context
873873
* noFill();
874874
* stroke(0);
875875
* strokeWeight(2);
876876
* spline(p0.x, p0.y, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y);
877-
*
877+
*
878878
* // Map mouse X to t in [0, 1] (span p1->p2)
879879
* let t = constrain(map(mouseX, 0, width, 0, 1), 0, 1);
880-
*
880+
*
881881
* // Evaluate the curve point by axis (splinePoint works one axis at a time)
882882
* let x = splinePoint(p0.x, p1.x, p2.x, p3.x, t);
883883
* let y = splinePoint(p0.y, p1.y, p2.y, p3.y, t);
884-
*
884+
*
885885
* // Marker at the evaluated position
886886
* noStroke();
887887
* fill('red');
888888
* circle(x, y, 8);
889-
*
889+
*
890890
* // Draw control/anchor points
891891
* stroke(0);
892892
* strokeWeight(1);
@@ -896,7 +896,7 @@ function curves(p5, fn){
896896
* circle(p1.x, p1.y, r);
897897
* circle(p2.x, p2.y, r);
898898
* circle(p3.x, p3.y, r);
899-
*
899+
*
900900
* // Labels + UI hint
901901
* noStroke();
902902
* fill(20);
@@ -909,7 +909,7 @@ function curves(p5, fn){
909909
* }
910910
* </code>
911911
* </div>
912-
*
912+
*
913913
*/
914914

915915
fn.splinePoint = function(a, b, c, d, t) {

0 commit comments

Comments
 (0)