자바스크립트 / 캔버스 2️⃣
//객체로 위의 데이터들을 한번에 묶을수 있다 var move = (50+20); var xes = (40, 40+50+20, 40+50+20+50+20, 40+50+20+50+20+50+20); var yes = (30, 30, 30+50, 30+50); let colors = (“yellow”,”green”,”blue”,”red”); var boxes = ( {x:40, y:30, color:”yellow”}, {x:40, y:30, color:”yellow”}, {x:40, y:30, color:”yellow”}, {x:40, y:30, color:”yellow”}, ); var boxes = ( new Box(30,30,”yellow”), //이런식으로 배열 안에 객체를 … Read more