Created
August 14, 2021 09:00
-
-
Save worstkiller/f510384010f1e793280b972d2ce2c1c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
private fun getGooglePhotosIcon() { | |
Canvas( | |
modifier = Modifier | |
.size(100.dp) | |
.padding(16.dp) | |
) { | |
drawArc( | |
color = Color(0xFFf04231), | |
startAngle = -90f, | |
sweepAngle = 180f, | |
useCenter = true, | |
size = Size(size.width * .50f, size.height * .50f), | |
topLeft = Offset(size.width * .25f, 0f) | |
) | |
drawArc( | |
color = Color(0xFF4385f7), | |
startAngle = 0f, | |
sweepAngle = 180f, | |
useCenter = true, | |
size = Size(size.width * .50f, size.height * .50f), | |
topLeft = Offset(size.width * .50f, size.height * .25f) | |
) | |
drawArc( | |
color = Color(0xFF30a952), | |
startAngle = 0f, | |
sweepAngle = -180f, | |
useCenter = true, | |
size = Size(size.width * .50f, size.height * .50f), | |
topLeft = Offset(0f, size.height * .25f) | |
) | |
drawArc( | |
color = Color(0xFFffbf00), | |
startAngle = 270f, | |
sweepAngle = -180f, | |
useCenter = true, | |
size = Size(size.width * .50f, size.height * .50f), | |
topLeft = Offset(size.width * .25f, size.height * .50f) | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment