mirror of
https://github.com/Skysamara/airshot_a.git
synced 2025-12-06 06:16:05 +00:00
cosmetic
This commit is contained in:
parent
930b93f91b
commit
f92f27c647
@ -24,14 +24,14 @@ class Shots {
|
||||
fun draw(canvas: Canvas?, screenWidth: Int, screenHeight: Int) {
|
||||
val paintWite: Paint = Paint()
|
||||
paintWite.apply {
|
||||
style = Paint.Style.FILL // стиль Заливка
|
||||
color = Color.WHITE // белая кайма вокруг
|
||||
style = Paint.Style.FILL
|
||||
color = Color.WHITE
|
||||
}
|
||||
val paintBlack: Paint = Paint()
|
||||
|
||||
val paintBlack: Paint = Paint()
|
||||
paintBlack.apply {
|
||||
style = Paint.Style.FILL // стиль Заливка
|
||||
color = Color.BLACK // белая кайма вокруг
|
||||
style = Paint.Style.FILL
|
||||
color = Color.BLACK
|
||||
}
|
||||
|
||||
randomizeShots(screenWidth, screenHeight)
|
||||
@ -39,7 +39,7 @@ class Shots {
|
||||
val x = shot.x
|
||||
val y = shot.y
|
||||
|
||||
var radius: Int = (screenWidth + screenHeight) / 100
|
||||
var radius: Int = (screenWidth + screenHeight) / 90
|
||||
canvas!!.drawCircle(x.toFloat(), y.toFloat(), radius.toFloat(), paintWite)
|
||||
|
||||
radius = (screenWidth + screenHeight) / 120
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user