Skip to content

Instantly share code, notes, and snippets.

@worstkiller
Created August 14, 2021 09:00
Show Gist options
  • Save worstkiller/f510384010f1e793280b972d2ce2c1c7 to your computer and use it in GitHub Desktop.
Save worstkiller/f510384010f1e793280b972d2ce2c1c7 to your computer and use it in GitHub Desktop.
@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