INNER CODE UNIT · Kotlin

pivot

DanielMartinus/Konfetti · konfetti/compose/src/main/java/nl/dionsegijn/konfetti/compose/KonfettiView.kt:107

                        pivot = Offset(particle.x + (particle.width / 2), particle.y),
                    )
                }) {
                    particle.shape.draw(drawScope = this, particle = particle, imageStore = imageStore)
                }
            }
        },
    )
}

/**
 * Transforms the shapes in the given [Party] object. If a shape is a [Shape.DrawableShape],
 * it replaces the [DrawableImage] with a [ReferenceImage] and stores the [Drawable] in the [ImageStore].
 *
 * @param party The Party object containing the shapes to be transformed.
 * @return A new Party object with the transformed shapes.
 */
fun storeImages(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…