examples: fix duplication (#2813)

This commit is contained in:
Niklas von Hertzen 2022-01-23 00:27:44 +08:00 committed by GitHub
parent f7c2289db1
commit 6020386bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,8 +29,6 @@
var canvas = document.querySelector("canvas"); var canvas = document.querySelector("canvas");
var ctx = canvas.getContext("2d"); var ctx = canvas.getContext("2d");
var ctx = canvas.getContext('2d');
ctx.beginPath(); ctx.beginPath();
ctx.arc(75,75,50,0,Math.PI*2,true); // Outer circle ctx.arc(75,75,50,0,Math.PI*2,true); // Outer circle
ctx.moveTo(110,75); ctx.moveTo(110,75);