Skip to content

Commit

Permalink
#75 Feat : 터치 영역 1.5배 확대
Browse files Browse the repository at this point in the history
  • Loading branch information
DongChyeon committed May 17, 2024
1 parent 524702e commit da58dfb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ private fun isInCircle(x: Float, y: Float, centerX: Float, centerY: Float, radiu
val dx = x - centerX
val dy = y - centerY

return (dx * dx + dy * dy) <= (radius * radius)
// 원의 반지름의 1.5배 이내에 있는지 확인 (터치 영역 개선을 위해 1.5배로 설정)
return (dx * dx + dy * dy) <= (radius * radius * 1.5f)
}

private fun calculateColorForPosition(
Expand Down

0 comments on commit da58dfb

Please sign in to comment.