강의

멘토링

커뮤니티

Inflearn Community Q&A

star10092113480's profile image
star10092113480

asked

Python Basics to Practice Part 4

Object-Oriented Programming-2 (Lab-7)

사각형 좌표값 질문

Written on

·

297

0

sx1, sy1 = 0, 0 #좌측 상단의 좌표값
sx2, sy2 = 0, 0 # 우측 하단의 좌표값

sx1 = self.cx - self.width/2
sy1 = self.cy - self.height / 2
sx2 = self.cx + self.width/2
sy2 = self.cy + self.height / 2
 
 
이 코드대로라면 sx1,sy1 은 좌측하단이고
sx2,sy2가 우측상단이 되는거아닌가요..?
터틀그래픽이 그리는것도 시작점은 좌측하단에서 시작하던데
python

Answer

This question is waiting for answers
Be the first to answer!
star10092113480's profile image
star10092113480

asked

Ask a question