Skip to content

Commit 9e676eb

Browse files
committed
Merge branch 'chinese_translate' of https://github.com/sm7515/p5.js-website into chinese_translate
merge
2 parents 2eaeb32 + 5732903 commit 9e676eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/data/examples/zh-Hans/10_Interaction/28_ArduinoSensor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
function setup() {
2121
createCanvas(400, 400);
2222
noStroke();
23-
fill("#ff00aa22");
23+
fill('#ff00aa22');
2424
receiveSensorData(handleData);
2525
}
2626

@@ -29,6 +29,6 @@ function handleData(data) {
2929
// data[0] 是第一个值, data[1] 是第二个, 以此类推.
3030

3131
// 绘制! 参考 http://p5js.org/reference/
32-
background("#ddd");
32+
background('#ddd');
3333
ellipse(100, 200, data[0] + 10, data[0] + 10);
3434
}

0 commit comments

Comments
 (0)