Created
July 9, 2021 17:49
-
-
Save mahendranv/10074cecc74d9a7997ff9b1ad99468c2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
val CarShape = GenericShape { size, _ -> | |
val w = 2f// size.width | |
val h = 2f //size.height | |
moveTo(24f * w, 102.5f * h) | |
cubicTo(12.61f * w, 63.56f * h, 43.55f * w, 58.61f * h, 95.5f * w, 49.5f * h) | |
cubicTo(101.31f * w, 36.52f * h, 103.58f * w, 29.07f * h, 103.5f * w, 15f * h) | |
cubicTo(231.66f * w, 3.43f * h, 240.99f * w, 48.65f * h, 237.5f * w, 102.5f * h) | |
lineTo(213f * w, 102.5f * h) | |
cubicTo(208.72f * w, 129.02f * h, 175.49f * w, 129.2f * h, 172.5f * w, 102.5f * h) | |
lineTo(98f * w, 102.5f * h) | |
cubicTo(93.5f * w, 128.5f * h, 62f * w, 129f * h, 57.5f * w, 102.5f * h) | |
lineTo(24f * w, 102.5f * h) | |
} |
Author
mahendranv
commented
Jul 9, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment