/**
 * This function takes two colors as input and calculates the ratio of each RGB component.
 * The result is stored in a triple and returned.
 */
fun calculateColorRatio(color1: Triple<Int, Int, Int>, color2: Triple<Int, Int, Int>): Triple<Double, Double, Double> {

    // Extract the RGB components of color1
    val (red1, green1, blue1) = color1

    // Extract the RGB components of color2
    val (red2, green2, blue2) = color2

    // Calculate the ratio of each RGB component
    val redRatio = red1.toDouble() / red2
    val greenRatio = green1.toDouble() / green2
    val blueRatio = blue1.toDouble() / blue2

    // Store the ratios in a triple
    val colorRatio = Triple(redRatio, greenRatio, blueRatio)

    // Return the color ratio triple
    return colorRatio
}
/**
 * This function takes two colors as input and calculates the ratio of each RGB component.
 * The result is stored in a triple and returned.
 */
fun calculateColorRatio(color1: Triple<Int, Int, Int>, color2: Triple<Int, Int, Int>): Triple<Double, Double, Double> {
/**
 * This function takes two colors as input and calculates the ratio of each RGB component.
 * The result is stored in a triple and returned.
 */
fun calculateColorRatio(color1: Triple<Int, Int, Int>, color2: Triple<Int, Int, Int>): Triple<Double, Double, Double> {

    // Extract the RGB components of color1
    val (red1, green1, blue1) = color1

    // Extract the RGB components of color2
    val (red2, green2, blue2) = color2

    // Calculate the ratio of each RGB component
    val redRatio = red1.toDouble() / red2
    val greenRatio = green1.toDouble() / green2
    val blueRatio = blue1.toDouble() / blue2

    // Store the ratios in a triple
    val colorRatio = Triple(redRatio, greenRatio, blueRatio)

    // Return the color ratio triple
    return colorRatio
}