So verwenden Sie CTX auf Leinwand JS
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
AvidCoder
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');