package com.example.pmulabs.designElem.statDesign

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.offset
import androidx.compose.foundation.layout.requiredHeight
import androidx.compose.foundation.layout.requiredSize
import androidx.compose.foundation.layout.requiredWidth
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.draw.rotate
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp

@Composable
fun RightCircles(modifier: Modifier = Modifier) {
    Box(
        modifier = modifier
            .requiredWidth(width = 355.dp)
            .requiredHeight(height = 267.dp)
            .rotate(degrees = -6.33f)
    ) {
        Box(
            modifier = Modifier
                .align(alignment = Alignment.TopStart)
                .offset(x = 171.71197509765625.dp,
                    y = 17.979248046875.dp)
                .requiredWidth(width = 192.dp)
                .requiredHeight(height = 179.dp)
                .clip(shape = CircleShape)
                .background(color = Color(0xff423a99).copy(alpha = 0.7f)))
        Box(
            modifier = Modifier
                .align(alignment = Alignment.TopStart)
                .offset(x = 86.4691162109375.dp,
                    y = 75.193603515625.dp)
                .requiredSize(size = 201.dp)
                .clip(shape = CircleShape)
                .background(color = Color(0xff423a99).copy(alpha = 0.7f)))
        Box(
            modifier = Modifier
                .align(alignment = Alignment.TopStart)
                .offset(x = 0.7720947265625.dp,
                    y = 122.24951171875.dp)
                .requiredSize(size = 137.dp)
                .clip(shape = CircleShape)
                .background(color = Color(0xffb7b7e3).copy(alpha = 0.5f)))
    }
}

@Preview(widthDp = 355, heightDp = 267)
@Composable
private fun RightCirclesPreview() {
    RightCircles(Modifier)
}