From e16d5db4351b5698f08c822b19e3d08ac6778aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=85=88=E7=94=9F?= <2917023937@qq.com> Date: Tue, 10 May 2022 09:47:28 +0000 Subject: [PATCH] =?UTF-8?q?update=20docs/api/media/video-context.md.=20?= =?UTF-8?q?=E5=8D=81=E5=85=AD=E8=BF=9B=E5=88=B6=E5=BA=94=E4=B8=BA=E5=85=AD?= =?UTF-8?q?=E4=BD=8D=EF=BC=8C=E8=80=8C0-255=20=E8=BD=AC=E4=B8=BA=E5=8D=81?= =?UTF-8?q?=E5=85=AD=E8=BF=9B=E5=88=B6=E4=B8=BA=E4=B8=A4=E4=BD=8D=EF=BC=8C?= =?UTF-8?q?=E6=95=85color=20=3D=20color.length=20=3D=3D=201=20=3F=20'00'?= =?UTF-8?q?=20+=20color=20:=20color?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/media/video-context.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/media/video-context.md b/docs/api/media/video-context.md index 7bef9966e..a9b074744 100644 --- a/docs/api/media/video-context.md +++ b/docs/api/media/video-context.md @@ -105,7 +105,7 @@ export default { const rgb = [] for (let i = 0; i < 3; ++i) { let color = Math.floor(Math.random() * 256).toString(16) - color = color.length == 1 ? '0' + color : color + color = color.length == 1 ? '00' + color : color rgb.push(color) } return '#' + rgb.join('') -- Gitee