INNER CODE UNIT · Kotlin

height

DanielMartinus/Konfetti · konfetti/compose/src/main/java/nl/dionsegijn/konfetti/compose/DrawShapes.kt:77

                    val height = (size * heightRatio).toInt()
                    val top = ((size - height) / 2f).toInt()

                    val x = particle.y.toInt()
                    val y = particle.x.toInt()
                    drawable.setBounds(y, top + x, size.toInt() + y, top + height + x)
                    drawable.draw(it.nativeCanvas)
                }
            }
        }
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…