Skip to content

Instantly share code, notes, and snippets.

@anidotnet
Created March 12, 2023 12:55
Show Gist options
  • Save anidotnet/f32ae5e9081c4a107d81179c27a7f5fe to your computer and use it in GitHub Desktop.
Save anidotnet/f32ae5e9081c4a107d81179c27a7f5fe to your computer and use it in GitHub Desktop.
Path buildSubmarinePath(Size size) {
return Path()
..moveTo(size.width * 0.1950342, size.height * 7.270667)
..lineTo(size.width * 0.1646269, size.height * 7.270667)
..lineTo(size.width * 0.1646269, size.height * 7.041185)
..lineTo(size.width * 0.1604670, size.height * 7.041185)
..cubicTo(
size.width * 0.1576797,
size.height * 7.152261,
size.width * 0.1548923,
size.height * 7.207719,
size.width * 0.1521261,
size.height * 7.207719)
..lineTo(size.width * 0.1521261, size.height * 7.025408)
..lineTo(size.width * 0.1379571, size.height * 7.009631)
..cubicTo(
size.width * 0.1393508,
size.height * 6.978237,
size.width * 0.1433840,
size.height * 6.962460,
size.width * 0.1500356,
size.height * 6.962460)
..lineTo(size.width * 0.1500356, size.height * 6.780149)
..lineTo(size.width * 0.1542166, size.height * 6.780149)
..lineTo(size.width * 0.1583765, size.height * 6.918476)
..lineTo(size.width * 0.1625364, size.height * 6.918476)
..lineTo(size.width * 0.1625364, size.height * 6.685807)
..lineTo(size.width * 0.1950342, size.height * 6.685807)
..cubicTo(
size.width * 0.1958789,
size.height * 6.778077,
size.width * 0.1972726,
size.height * 6.824133,
size.width * 0.1992152,
size.height * 6.824133)
..cubicTo(
size.width * 0.2364220,
size.height * 6.752898,
size.width * 0.2914297,
size.height * 6.696324,
size.width * 0.3642172,
size.height * 6.654412)
..cubicTo(
size.width * 0.4303110,
size.height * 6.583177,
size.width * 0.4912945,
size.height * 6.547480,
size.width * 0.5471258,
size.height * 6.547480)
..lineTo(size.width * 0.8933681, size.height * 6.547480)
..lineTo(size.width * 0.8933681, size.height * 6.317838)
..cubicTo(
size.width * 0.8933681,
size.height * 6.286444,
size.width * 0.9043485,
size.height * 6.270667,
size.width * 0.9262883,
size.height * 6.270667)
..lineTo(size.width * 0.9467076, size.height * 6.270667)
..cubicTo(
size.width * 0.9486503,
size.height * 6.270667,
size.width * 0.9505930,
size.height * 6.286444,
size.width * 0.9525357,
size.height * 6.317838)
..lineTo(size.width * 0.9525357, size.height * 6.563097)
..lineTo(size.width * 0.9546262, size.height * 6.563097)
..cubicTo(
size.width * 1.046566,
size.height * 6.615528,
size.width * 1.099483,
size.height * 6.672261,
size.width * 1.113378,
size.height * 6.732978)
..cubicTo(
size.width * 1.129764,
size.height * 6.793854,
size.width * 1.137957,
size.height * 6.865089,
size.width * 1.137957,
size.height * 6.946842)
..cubicTo(
size.width * 1.137957,
size.height * 7.099831,
size.width * 1.101975,
size.height * 7.197361,
size.width * 1.030032,
size.height * 7.239273)
..lineTo(size.width * 0.8425414, size.height * 7.239273)
..lineTo(size.width * 0.8221220, size.height * 7.254890)
..lineTo(size.width * 0.3600362, size.height * 7.254890)
..cubicTo(
size.width * 0.3044795,
size.height * 7.254890,
size.width * 0.2508866,
size.height * 7.208835,
size.width * 0.1992152,
size.height * 7.116563)
..cubicTo(
size.width * 0.1978216,
size.height * 7.141743,
size.width * 0.1964279,
size.height * 7.193217,
size.width * 0.1950342,
size.height * 7.270667)
..close();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment