-
Notifications
You must be signed in to change notification settings - Fork 0
/
yoyo_standart.py
54 lines (47 loc) · 30.4 KB
/
yoyo_standart.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import pygame
class Const:
width = 1100
height = 550
white = (255, 255, 255)
# pink = (255, 228, 225)
# pink = (255, 0, 0)
beige = (250, 235, 215)
# beige = (0, 0, 255)
green = (119, 221, 119)
brown = ()
g = 9.8
m = 0.5
maxis = 0.01
r = 0.002
R = 0.03
dt = 0.01
T = 60
x0 = 0.05
v0 = 0
l = 0.5
x1 = 0.2
x2 = 0.3
F1 = -20
F2 = 20
k = 0.1
e = 0.000001
pygame.init()
screen = pygame.display.set_mode((Const.width, Const.height))
pygame.display.set_caption("Yo-Yo")
x_pos = Const.width // 2
rotate = False
y_pos, v = Const.height, 100 * Const.v0
y = [50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 53, 53, 53, 53, 54, 54, 54, 54, 55, 55, 55, 56, 56, 56, 57, 57, 57, 58, 58, 59, 59, 59, 60, 60, 61, 61, 62, 62, 63, 63, 64, 64, 65, 65, 66, 66, 67, 67, 68, 68, 69, 69, 70, 71, 71, 72, 73, 73, 74, 74, 75, 76, 76, 77, 78, 79, 79, 80, 81, 81, 82, 83, 84, 84, 85, 86, 87, 88, 88, 89, 90, 91, 92, 93, 94, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 124, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 137, 138, 139, 140, 142, 143, 144, 145, 147, 148, 149, 151, 152, 153, 155, 156, 157, 159, 160, 161, 163, 164, 166, 167, 168, 170, 171, 173, 174, 176, 177, 179, 180, 182, 183, 185, 186, 188, 189, 191, 192, 194, 196, 197, 199, 200, 202, 204, 205, 207, 209, 210, 212, 214, 215, 217, 219, 220, 222, 224, 226, 227, 229, 231, 233, 234, 236, 238, 240, 242, 243, 245, 247, 249, 251, 253, 255, 257, 258, 260, 262, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 309, 311, 313, 315, 317, 319, 321, 324, 326, 328, 330, 332, 335, 337, 339, 341, 344, 346, 348, 350, 353, 355, 357, 359, 362, 364, 366, 369, 371, 374, 376, 378, 381, 383, 385, 388, 390, 393, 395, 398, 400, 403, 405, 407, 410, 412, 415, 418, 420, 423, 425, 428, 430, 433, 435, 438, 441, 443, 446, 448, 451, 454, 456, 459, 462, 464, 467, 470, 472, 475, 478, 480, 483, 486, 489, 491, 494, 497, 500, 497, 494, 492, 490, 487, 485, 482, 480, 477, 475, 472, 470, 468, 465, 463, 460, 458, 456, 453, 451, 449, 446, 444, 442, 439, 437, 435, 433, 430, 428, 426, 424, 421, 419, 417, 415, 413, 410, 408, 406, 404, 402, 400, 397, 395, 393, 391, 389, 387, 385, 383, 381, 379, 377, 375, 373, 370, 368, 366, 364, 362, 361, 359, 357, 355, 353, 351, 349, 347, 345, 343, 341, 339, 337, 336, 334, 332, 330, 328, 326, 325, 323, 321, 319, 317, 316, 314, 312, 310, 309, 307, 305, 303, 302, 300, 298, 297, 295, 293, 292, 290, 288, 287, 285, 284, 282, 280, 279, 277, 276, 274, 273, 271, 270, 268, 266, 265, 263, 262, 261, 259, 258, 256, 255, 253, 252, 250, 249, 248, 246, 245, 243, 242, 241, 239, 238, 237, 235, 234, 233, 231, 230, 229, 228, 226, 225, 224, 223, 221, 220, 219, 218, 217, 215, 214, 213, 212, 211, 210, 208, 207, 206, 205, 204, 203, 202, 201, 200, 199, 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 179, 178, 177, 176, 175, 174, 173, 173, 172, 171, 170, 169, 169, 168, 167, 166, 166, 165, 164, 164, 163, 162, 161, 161, 160, 159, 159, 158, 158, 157, 156, 156, 155, 155, 154, 153, 153, 152, 152, 151, 151, 150, 150, 149, 149, 148, 148, 147, 147, 146, 146, 145, 145, 145, 144, 144, 143, 143, 143, 142, 142, 142, 141, 141, 141, 140, 140, 140, 139, 139, 139, 139, 138, 138, 138, 138, 137, 137, 137, 137, 137, 136, 136, 136, 136, 136, 136, 136, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 136, 136, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 139, 139, 139, 140, 140, 140, 140, 141, 141, 141, 142, 142, 142, 143, 143, 144, 144, 144, 145, 145, 146, 146, 147, 147, 147, 148, 148, 149, 149, 150, 150, 151, 152, 152, 153, 153, 154, 154, 155, 155, 156, 157, 157, 158, 159, 159, 160, 161, 161, 162, 163, 163, 164, 165, 165, 166, 167, 168, 168, 169, 170, 171, 172, 172, 173, 174, 175, 176, 176, 177, 178, 179, 180, 181, 182, 183, 184, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 203, 204, 205, 206, 207, 208, 209, 210, 211, 213, 214, 215, 216, 217, 219, 220, 221, 222, 223, 225, 226, 227, 228, 230, 231, 232, 234, 235, 236, 238, 239, 240, 242, 243, 244, 246, 247, 248, 250, 251, 253, 254, 256, 257, 258, 260, 261, 263, 264, 266, 267, 269, 270, 272, 274, 275, 277, 278, 280, 281, 283, 285, 286, 288, 289, 291, 293, 294, 296, 298, 299, 301, 303, 304, 306, 308, 310, 311, 313, 315, 317, 318, 320, 322, 324, 326, 327, 329, 331, 333, 335, 337, 339, 340, 342, 344, 346, 348, 350, 352, 354, 356, 358, 360, 362, 364, 366, 368, 370, 372, 374, 376, 378, 380, 382, 384, 386, 388, 390, 392, 394, 397, 399, 401, 403, 405, 407, 410, 412, 414, 416, 418, 421, 423, 425, 427, 429, 432, 434, 436, 439, 441, 443, 445, 448, 450, 452, 455, 457, 460, 462, 464, 467, 469, 471, 474, 476, 479, 481, 484, 486, 489, 491, 494, 496, 498, 500, 497, 495, 493, 491, 488, 486, 484, 482, 479, 477, 475, 473, 471, 469, 467, 464, 462, 460, 458, 456, 454, 452, 450, 448, 446, 444, 442, 440, 438, 435, 433, 432, 430, 428, 426, 424, 422, 420, 418, 416, 414, 412, 410, 408, 406, 405, 403, 401, 399, 397, 395, 393, 392, 390, 388, 386, 385, 383, 381, 379, 378, 376, 374, 372, 371, 369, 367, 366, 364, 362, 361, 359, 357, 356, 354, 352, 351, 349, 348, 346, 345, 343, 341, 340, 338, 337, 335, 334, 332, 331, 329, 328, 326, 325, 323, 322, 321, 319, 318, 316, 315, 314, 312, 311, 309, 308, 307, 305, 304, 303, 301, 300, 299, 298, 296, 295, 294, 293, 291, 290, 289, 288, 286, 285, 284, 283, 282, 281, 279, 278, 277, 276, 275, 274, 273, 272, 270, 269, 268, 267, 266, 265, 264, 263, 262, 261, 260, 259, 258, 257, 256, 255, 254, 253, 252, 251, 251, 250, 249, 248, 247, 246, 245, 244, 244, 243, 242, 241, 240, 240, 239, 238, 237, 236, 236, 235, 234, 233, 233, 232, 231, 231, 230, 229, 229, 228, 227, 227, 226, 225, 225, 224, 223, 223, 222, 222, 221, 221, 220, 220, 219, 218, 218, 217, 217, 216, 216, 216, 215, 215, 214, 214, 213, 213, 212, 212, 212, 211, 211, 211, 210, 210, 209, 209, 209, 208, 208, 208, 208, 207, 207, 207, 207, 206, 206, 206, 206, 205, 205, 205, 205, 205, 204, 204, 204, 204, 204, 204, 204, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 204, 204, 204, 204, 204, 204, 204, 205, 205, 205, 205, 205, 206, 206, 206, 206, 206, 207, 207, 207, 207, 208, 208, 208, 209, 209, 209, 210, 210, 210, 211, 211, 212, 212, 212, 213, 213, 214, 214, 214, 215, 215, 216, 216, 217, 217, 218, 218, 219, 219, 220, 220, 221, 222, 222, 223, 223, 224, 224, 225, 226, 226, 227, 228, 228, 229, 230, 230, 231, 232, 232, 233, 234, 235, 235, 236, 237, 238, 238, 239, 240, 241, 242, 242, 243, 244, 245, 246, 247, 248, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 276, 277, 278, 279, 280, 281, 282, 284, 285, 286, 287, 288, 290, 291, 292, 293, 295, 296, 297, 298, 300, 301, 302, 304, 305, 306, 308, 309, 310, 312, 313, 314, 316, 317, 319, 320, 322, 323, 324, 326, 327, 329, 330, 332, 333, 335, 336, 338, 339, 341, 342, 344, 346, 347, 349, 350, 352, 353, 355, 357, 358, 360, 362, 363, 365, 367, 368, 370, 372, 373, 375, 377, 379, 380, 382, 384, 386, 387, 389, 391, 393, 395, 397, 398, 400, 402, 404, 406, 408, 410, 411, 413, 415, 417, 419, 421, 423, 425, 427, 429, 431, 433, 435, 437, 439, 441, 443, 445, 447, 449, 451, 453, 455, 457, 459, 462, 464, 466, 468, 470, 472, 474, 477, 479, 481, 483, 485, 488, 490, 492, 494, 496, 499, 500, 497, 495, 493, 491, 489, 487, 485, 483, 481, 480, 478, 476, 474, 472, 470, 468, 466, 464, 462, 460, 459, 457, 455, 453, 451, 449, 448, 446, 444, 442, 440, 439, 437, 435, 433, 432, 430, 428, 426, 425, 423, 421, 420, 418, 416, 415, 413, 411, 410, 408, 407, 405, 403, 402, 400, 399, 397, 396, 394, 393, 391, 389, 388, 386, 385, 384, 382, 381, 379, 378, 376, 375, 373, 372, 371, 369, 368, 366, 365, 364, 362, 361, 360, 358, 357, 356, 355, 353, 352, 351, 349, 348, 347, 346, 344, 343, 342, 341, 340, 338, 337, 336, 335, 334, 333, 332, 330, 329, 328, 327, 326, 325, 324, 323, 322, 321, 320, 319, 318, 317, 316, 315, 314, 313, 312, 311, 310, 309, 308, 307, 306, 305, 304, 303, 303, 302, 301, 300, 299, 298, 297, 297, 296, 295, 294, 293, 293, 292, 291, 290, 290, 289, 288, 287, 287, 286, 285, 285, 284, 283, 283, 282, 281, 281, 280, 279, 279, 278, 278, 277, 277, 276, 275, 275, 274, 274, 273, 273, 272, 272, 271, 271, 270, 270, 269, 269, 269, 268, 268, 267, 267, 267, 266, 266, 265, 265, 265, 264, 264, 264, 263, 263, 263, 263, 262, 262, 262, 262, 261, 261, 261, 261, 260, 260, 260, 260, 260, 259, 259, 259, 259, 259, 259, 259, 259, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 259, 259, 259, 259, 259, 259, 259, 259, 260, 260, 260, 260, 260, 261, 261, 261, 261, 261, 262, 262, 262, 263, 263, 263, 263, 264, 264, 264, 265, 265, 265, 266, 266, 267, 267, 267, 268, 268, 269, 269, 269, 270, 270, 271, 271, 272, 272, 273, 273, 274, 274, 275, 275, 276, 276, 277, 278, 278, 279, 279, 280, 281, 281, 282, 283, 283, 284, 285, 285, 286, 287, 287, 288, 289, 290, 290, 291, 292, 293, 293, 294, 295, 296, 297, 297, 298, 299, 300, 301, 302, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 333, 334, 335, 336, 337, 338, 340, 341, 342, 343, 344, 346, 347, 348, 349, 351, 352, 353, 354, 356, 357, 358, 360, 361, 362, 364, 365, 366, 368, 369, 371, 372, 373, 375, 376, 378, 379, 380, 382, 383, 385, 386, 388, 389, 391, 392, 394, 395, 397, 399, 400, 402, 403, 405, 406, 408, 410, 411, 413, 415, 416, 418, 420, 421, 423, 425, 426, 428, 430, 431, 433, 435, 437, 438, 440, 442, 444, 446, 447, 449, 451, 453, 455, 456, 458, 460, 462, 464, 466, 468, 470, 472, 474, 475, 477, 479, 481, 483, 485, 487, 489, 491, 493, 495, 497, 499, 500, 498, 496, 494, 492, 490, 489, 487, 485, 483, 481, 480, 478, 476, 475, 473, 471, 469, 468, 466, 464, 463, 461, 459, 458, 456, 454, 453, 451, 450, 448, 446, 445, 443, 442, 440, 439, 437, 436, 434, 433, 431, 430, 428, 427, 425, 424, 422, 421, 419, 418, 417, 415, 414, 412, 411, 410, 408, 407, 406, 404, 403, 402, 400, 399, 398, 397, 395, 394, 393, 392, 390, 389, 388, 387, 385, 384, 383, 382, 381, 380, 378, 377, 376, 375, 374, 373, 372, 371, 370, 368, 367, 366, 365, 364, 363, 362, 361, 360, 359, 358, 357, 356, 355, 354, 353, 352, 352, 351, 350, 349, 348, 347, 346, 345, 344, 344, 343, 342, 341, 340, 339, 339, 338, 337, 336, 336, 335, 334, 333, 333, 332, 331, 330, 330, 329, 328, 328, 327, 326, 326, 325, 325, 324, 323, 323, 322, 322, 321, 320, 320, 319, 319, 318, 318, 317, 317, 316, 316, 315, 315, 314, 314, 313, 313, 313, 312, 312, 311, 311, 311, 310, 310, 310, 309, 309, 309, 308, 308, 308, 307, 307, 307, 306, 306, 306, 306, 305, 305, 305, 305, 305, 304, 304, 304, 304, 304, 304, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 304, 304, 304, 304, 304, 304, 305, 305, 305, 305, 305, 306, 306, 306, 306, 307, 307, 307, 307, 308, 308, 308, 309, 309, 309, 310, 310, 310, 311, 311, 312, 312, 312, 313, 313, 314, 314, 315, 315, 316, 316, 317, 317, 318, 318, 319, 319, 320, 320, 321, 321, 322, 323, 323, 324, 324, 325, 326, 326, 327, 328, 328, 329, 330, 330, 331, 332, 332, 333, 334, 335, 335, 336, 337, 338, 338, 339, 340, 341, 342, 342, 343, 344, 345, 346, 347, 348, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 375, 376, 377, 378, 379, 380, 381, 383, 384, 385, 386, 387, 389, 390, 391, 392, 393, 395, 396, 397, 399, 400, 401, 402, 404, 405, 406, 408, 409, 411, 412, 413, 415, 416, 417, 419, 420, 422, 423, 425, 426, 428, 429, 431, 432, 433, 435, 437, 438, 440, 441, 443, 444, 446, 447, 449, 451, 452, 454, 455, 457, 459, 460, 462, 464, 465, 467, 469, 470, 472, 474, 476, 477, 479, 481, 483, 484, 486, 488, 490, 491, 493, 495, 497, 499, 500, 498, 496, 495, 493, 491, 490, 488, 486, 485, 483, 482, 480, 479, 477, 475, 474, 472, 471, 469, 468, 466, 465, 463, 462, 461, 459, 458, 456, 455, 453, 452, 451, 449, 448, 447, 445, 444, 442, 441, 440, 438, 437, 436, 435, 433, 432, 431, 430, 428, 427, 426, 425, 423, 422, 421, 420, 419, 417, 416, 415, 414, 413, 412, 411, 410, 408, 407, 406, 405, 404, 403, 402, 401, 400, 399, 398, 397, 396, 395, 394, 393, 392, 391, 390, 389, 388, 387, 386, 386, 385, 384, 383, 382, 381, 380, 379, 379, 378, 377, 376, 375, 375, 374, 373, 372, 372, 371, 370, 369, 369, 368, 367, 366, 366, 365, 364, 364, 363, 363, 362, 361, 361, 360, 359, 359, 358, 358, 357, 357, 356, 355, 355, 354, 354, 353, 353, 352, 352, 351, 351, 351, 350, 350, 349, 349, 348, 348, 348, 347, 347, 347, 346, 346, 345, 345, 345, 345, 344, 344, 344, 343, 343, 343, 343, 342, 342, 342, 342, 341, 341, 341, 341, 341, 340, 340, 340, 340, 340, 340, 340, 340, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 340, 340, 340, 340, 340, 340, 340, 341, 341, 341, 341, 341, 341, 342, 342, 342, 342, 343, 343, 343, 343, 344, 344, 344, 345, 345, 345, 346, 346, 346, 347, 347, 347, 348, 348, 349, 349, 349, 350, 350, 351, 351, 352, 352, 353, 353, 354, 354, 355, 355, 356, 356, 357, 357, 358, 358, 359, 360, 360, 361, 361, 362, 363, 363, 364, 365, 365, 366, 367, 367, 368, 369, 370, 370, 371, 372, 372, 373, 374, 375, 376, 376, 377, 378, 379, 380, 381, 381, 382, 383, 384, 385, 386, 387, 388, 389, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 407, 408, 409, 410, 411, 412, 413, 414, 415, 417, 418, 419, 420, 421, 423, 424, 425, 426, 427, 429, 430, 431, 432, 434, 435, 436, 438, 439, 440, 442, 443, 444, 446, 447, 448, 450, 451, 452, 454, 455, 457, 458, 460, 461, 462, 464, 465, 467, 468, 470, 471, 473, 474, 476, 477, 479, 481, 482, 484, 485, 487, 488, 490, 492, 493, 495, 497, 498, 500, 498, 497, 495, 494, 492, 491, 489, 488, 486, 485, 484, 482, 481, 479, 478, 477, 475, 474, 473, 471, 470, 469, 467, 466, 465, 463, 462, 461, 460, 458, 457, 456, 455, 453, 452, 451, 450, 449, 448, 446, 445, 444, 443, 442, 441, 440, 439, 437, 436, 435, 434, 433, 432, 431, 430, 429, 428, 427, 426, 425, 424, 423, 422, 421, 420, 419, 418, 417, 417, 416, 415, 414, 413, 412, 411, 410, 410, 409, 408, 407, 406, 405, 405, 404, 403, 402, 402, 401, 400, 399, 399, 398, 397, 397, 396, 395, 395, 394, 393, 393, 392, 391, 391, 390, 390, 389, 388, 388, 387, 387, 386, 386, 385, 385, 384, 384, 383, 383, 382, 382, 381, 381, 380, 380, 379, 379, 379, 378, 378, 377, 377, 377, 376, 376, 376, 375, 375, 375, 374, 374, 374, 373, 373, 373, 373, 372, 372, 372, 372, 372, 371, 371, 371, 371, 371, 370, 370, 370, 370, 370, 370, 370, 370, 370, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 370, 370, 370, 370, 370, 370, 370, 370, 371, 371, 371, 371, 371, 371, 372, 372, 372, 372, 373, 373, 373, 373, 374, 374, 374, 374, 375, 375, 375, 376, 376, 376, 377, 377, 378, 378, 378, 379, 379, 380, 380, 380, 381, 381, 382, 382, 383, 383, 384, 384, 385, 385, 386, 386, 387, 387, 388, 389, 389, 390, 390, 391, 392, 392, 393, 393, 394, 395, 395, 396, 397, 398, 398, 399, 400, 400, 401, 402, 403, 403, 404, 405, 406, 407, 407, 408, 409, 410, 411, 412, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 446, 447, 448, 449, 450, 451, 453, 454, 455, 456, 458, 459, 460, 461, 463, 464, 465, 466, 468, 469, 470, 472, 473, 474, 476, 477, 478, 480, 481, 483, 484, 485, 487, 488, 490, 491, 493, 494, 496, 497, 499, 500, 498, 497, 495, 494, 493, 492, 490, 489, 488, 486, 485, 484, 483, 481, 480, 479, 478, 477, 475, 474, 473, 472, 471, 470, 468, 467, 466, 465, 464, 463, 462, 461, 460, 458, 457, 456, 455, 454, 453, 452, 451, 450, 449, 448, 447, 446, 445, 444, 444, 443, 442, 441, 440, 439, 438, 437, 436, 436, 435, 434, 433, 432, 431, 431, 430, 429, 428, 427, 427, 426, 425, 424, 424, 423, 422, 422, 421, 420, 420, 419, 418, 418, 417, 416, 416, 415, 414, 414, 413, 413, 412, 412, 411, 410, 410, 409, 409, 408, 408, 407, 407, 406, 406, 405, 405, 405, 404, 404, 403, 403, 402, 402, 402, 401, 401, 401, 400, 400, 400, 399, 399, 399, 398, 398, 398, 398, 397, 397, 397, 397, 396, 396, 396, 396, 395, 395, 395, 395, 395, 395, 395, 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, 393, 393, 393, 393, 393, 393, 393, 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, 395, 395, 395, 395, 395, 395, 396, 396, 396, 396, 396, 397, 397, 397, 397, 398, 398, 398, 399, 399, 399, 399, 400, 400, 400, 401, 401, 402, 402, 402, 403, 403, 403, 404, 404, 405, 405, 406, 406, 407, 407, 408, 408, 409, 409, 410, 410, 411, 411, 412, 412, 413, 414, 414, 415, 415, 416, 417, 417, 418, 419, 419, 420, 421, 421, 422, 423, 423, 424, 425, 426, 426, 427, 428, 429, 429, 430, 431, 432, 433, 433, 434, 435, 436, 437, 438, 439, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 466, 467, 468, 469, 470, 471, 472, 474, 475, 476, 477, 478, 480, 481, 482, 483, 484, 486, 487, 488, 490, 491, 492, 493, 495, 496, 497, 499, 500, 498, 497, 496, 495, 493, 492, 491, 490, 489, 488, 487, 485, 484, 483, 482, 481, 480, 479, 478, 477, 476, 475, 474, 473, 472, 471, 470, 469, 468, 467, 466, 465, 464, 463, 462, 461, 460, 459, 458, 458, 457, 456, 455, 454, 453, 452, 452, 451, 450, 449, 448, 448, 447, 446, 445, 445, 444, 443, 442, 442, 441, 440, 440, 439, 438, 438, 437, 436, 436, 435, 435, 434, 433, 433, 432, 432, 431, 430, 430, 429, 429, 428, 428, 427, 427, 426, 426, 425, 425, 425, 424, 424, 423, 423, 422, 422, 422, 421, 421, 421, 420, 420, 419, 419, 419, 419, 418, 418, 418, 417, 417, 417, 417, 416, 416, 416, 416, 415, 415, 415, 415, 415, 415, 414, 414, 414, 414, 414, 414, 414, 414, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 414, 414, 414, 414, 414, 414, 414, 414, 415, 415, 415, 415, 415, 415, 416, 416, 416, 416, 417, 417, 417, 417, 418, 418, 418, 418, 419, 419, 419, 420, 420, 420, 421, 421, 422, 422, 422, 423, 423, 424, 424, 425, 425, 425, 426, 426, 427, 427, 428, 428, 429, 429, 430, 430, 431, 432, 432, 433, 433, 434, 435, 435, 436, 436, 437, 438, 438, 439, 440, 440, 441, 442, 442, 443, 444, 445, 445, 446, 447, 448, 448, 449, 450, 451, 452, 452, 453, 454, 455, 456, 457, 458, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 487, 488, 489, 490, 491, 492, 493, 495, 496, 497, 498, 499, 500, 498, 497, 496, 495, 494, 493, 492, 491, 490, 489, 488, 487, 486, 485, 484, 483, 482, 481, 480, 479, 478, 477, 476, 475, 475, 474, 473, 472, 471, 470, 469, 468, 468, 467, 466, 465, 464, 464, 463, 462, 461, 461, 460, 459, 458, 458, 457, 456, 456, 455, 454, 454, 453, 452, 452, 451, 450, 450, 449, 449, 448, 447, 447, 446, 446, 445, 445, 444, 444, 443, 443, 442, 442, 441, 441, 440, 440, 439, 439, 439, 438, 438, 437, 437, 437, 436, 436, 436, 435, 435, 435, 434, 434, 434, 433, 433, 433, 432, 432, 432, 432, 431, 431, 431, 431, 431, 430, 430, 430, 430, 430, 430, 430, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 430, 430, 430, 430, 430, 430, 431, 431, 431, 431, 431, 432, 432, 432, 432, 433, 433, 433, 433, 434, 434, 434, 435, 435, 435, 436, 436, 436, 437, 437, 438, 438, 438, 439, 439, 440, 440, 441, 441, 441, 442, 442, 443, 443, 444, 444, 445, 446, 446, 447, 447, 448, 448, 449, 450, 450, 451, 451, 452, 453, 453, 454, 455, 455, 456, 457, 457, 458, 459, 460, 460, 461, 462, 463, 463, 464, 465, 466, 466, 467, 468, 469, 470, 471, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 493, 494, 495, 496, 497, 498, 499, 500, 499, 498, 497, 496, 495, 494, 493, 492, 491, 490, 489, 488, 487, 486, 485, 485, 484, 483, 482, 481, 480, 480, 479, 478, 477, 476, 476, 475, 474, 473, 473, 472, 471, 470, 470, 469, 468, 468, 467, 466, 466, 465, 464, 464, 463, 463, 462, 461, 461, 460, 460, 459, 459, 458, 458, 457, 457, 456, 456, 455, 455, 454, 454, 453, 453, 452, 452, 451, 451, 451, 450, 450, 449, 449, 449, 448, 448, 448, 447, 447, 447, 446, 446, 446, 446, 445, 445, 445, 445, 444, 444, 444, 444, 444, 443, 443, 443, 443, 443, 443, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 443, 443, 443, 443, 443, 443, 443, 444, 444, 444, 444, 444, 445, 445, 445, 445, 446, 446, 446, 447, 447, 447, 447, 448, 448, 448, 449, 449, 450, 450, 450, 451, 451, 452, 452, 452, 453, 453, 454, 454, 455, 455, 456, 456, 457, 457, 458, 458, 459, 459, 460, 460, 461, 462, 462, 463, 463, 464, 465, 465, 466, 467, 467, 468, 469, 469, 470, 471, 471, 472, 473, 474, 474, 475, 476, 477, 477, 478, 479, 480, 481, 481, 482, 483, 484, 485, 486, 487, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 499, 498, 497, 496, 495, 494, 493, 493, 492, 491, 490, 489, 489, 488, 487, 486, 485, 485, 484, 483, 482, 482, 481, 480, 480, 479, 478, 478, 477, 476, 476, 475, 474, 474, 473, 473, 472, 471, 471, 470, 470, 469, 469, 468, 468, 467, 467, 466, 466, 465, 465, 464, 464, 463, 463, 463, 462, 462, 461, 461, 461, 460, 460, 459, 459, 459, 458, 458, 458, 458, 457, 457, 457, 456, 456, 456, 456, 455, 455, 455, 455, 455, 454, 454, 454, 454, 454, 454, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 454, 454, 454, 454, 454, 454, 455, 455, 455, 455, 455, 456, 456, 456, 456, 457, 457, 457, 458, 458, 458, 458, 459, 459, 459, 460, 460, 461, 461, 461, 462, 462, 463, 463, 463, 464, 464, 465, 465, 466, 466, 467, 467, 468, 468, 469, 469, 470, 470, 471, 471, 472, 473, 473, 474, 474, 475, 476, 476, 477, 478, 478, 479, 480, 480, 481, 482, 482, 483, 484, 485, 485, 486, 487, 488, 489, 489, 490, 491, 492, 493, 493, 494, 495, 496, 497, 498, 499, 499, 500, 499, 498, 497, 496, 496, 495, 494, 493, 492, 492, 491, 490, 490, 489, 488, 487, 487, 486, 485, 485, 484, 484, 483, 482, 482, 481, 481, 480, 479, 479, 478, 478, 477, 477, 476, 476, 475, 475, 474, 474, 473, 473, 472, 472, 471, 471, 471, 470, 470, 469, 469, 469, 468, 468, 467, 467, 467, 466, 466, 466, 466, 465, 465, 465, 464, 464, 464, 464, 463, 463, 463, 463, 463, 462, 462, 462, 462, 462, 462, 462, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 462, 462, 462, 462, 462, 462, 463, 463, 463, 463, 463, 464, 464, 464, 464, 464, 465, 465, 465, 466, 466, 466, 467, 467, 467, 468, 468, 468, 469, 469, 469, 470, 470, 471, 471, 471, 472, 472, 473, 473, 474, 474, 475, 475, 476, 476, 477, 477, 478, 478, 479, 479, 480, 481, 481, 482, 482, 483, 484, 484, 485, 486, 486, 487, 488, 488, 489, 490, 490, 491, 492, 493, 493, 494, 495, 496, 496, 497, 498, 499, 500, 499, 498, 497, 497, 496, 495, 495, 494, 493, 493, 492, 491, 491, 490, 489, 489, 488, 488, 487, 486, 486, 485, 485, 484, 484, 483, 483, 482, 482, 481, 481, 480, 480, 479, 479, 479, 478, 478, 477, 477, 476, 476, 476, 475, 475, 475, 474, 474, 474, 473, 473, 473, 472, 472, 472, 472, 471, 471, 471, 471, 471, 470, 470, 470, 470, 470, 469, 469, 469, 469, 469, 469, 469, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 469, 469, 469, 469, 469, 469, 469, 470, 470, 470, 470, 470, 470, 471, 471, 471, 471, 472, 472, 472, 472, 473, 473, 473, 474, 474, 474, 475, 475, 475, 476, 476, 476, 477, 477, 478, 478, 478, 479, 479, 480, 480, 481, 481, 482, 482, 483, 483, 484, 484, 485, 485, 486, 486, 487, 488, 488, 489, 489, 490, 491, 491, 492, 492, 493, 494, 494, 495, 496, 497, 497, 498, 499, 499, 500, 499, 498, 498, 497, 496, 496, 495, 494, 494, 493, 493, 492, 491, 491, 490, 490, 489, 489, 488, 488, 487, 487, 486, 486, 485, 485, 485, 484, 484, 483, 483, 482, 482, 482, 481, 481, 481, 480, 480, 480, 479, 479, 479, 478, 478, 478, 477, 477, 477, 477, 476, 476, 476, 476, 476, 475, 475, 475, 475, 475, 475, 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, 475, 475, 475, 475, 475, 475, 475, 476, 476, 476, 476, 477, 477, 477, 477, 478, 478, 478, 478, 479, 479, 479, 480, 480, 480, 481, 481, 481, 482, 482, 483, 483, 483, 484, 484, 485, 485, 486, 486, 487, 487, 487, 488, 488, 489, 490, 490, 491, 491, 492, 492, 493, 493, 494, 495, 495, 496, 496, 497, 498, 498, 499, 500, 499, 498, 498, 497, 497, 496, 495, 495, 494, 494, 493, 493, 492, 492, 491, 491, 490, 490, 490, 489, 489, 488, 488, 487, 487, 487, 486, 486, 486, 485, 485, 484, 484, 484, 484, 483, 483, 483, 482, 482, 482, 482, 481, 481, 481, 481, 480, 480, 480, 480, 480, 480, 479, 479, 479, 479, 479, 479, 479, 479, 479, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 479, 479, 479, 479, 479, 479, 479, 479, 479, 480, 480, 480, 480, 480, 481, 481, 481, 481, 481, 482, 482, 482, 482, 483, 483, 483, 484, 484, 484, 485, 485, 485, 486, 486, 486, 487, 487, 488, 488, 488, 489, 489, 490, 490, 491, 491, 491, 492, 492, 493, 493, 494, 495, 495, 496, 496, 497, 497, 498, 498, 499, 500, 499, 498, 498, 497, 497, 496, 496, 495, 495, 494, 494, 494, 493, 493, 492, 492, 491, 491, 491, 490, 490, 490, 489, 489, 488, 488, 488, 488, 487, 487, 487, 486, 486, 486, 486, 485, 485, 485, 485, 484, 484, 484, 484, 484, 484, 483, 483, 483, 483, 483, 483, 483, 483, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 483, 483, 483, 483, 483, 483, 483, 483, 484, 484, 484, 484, 484, 484, 485, 485, 485, 485, 486, 486, 486, 486, 487, 487, 487, 487, 488, 488, 488, 489, 489, 489, 490, 490, 491, 491, 491, 492, 492, 493, 493, 493, 494, 494, 495, 495, 496, 496, 497, 497, 498, 498, 499, 499, 500, 499, 499, 498, 498, 497, 497, 496, 496, 495, 495, 495, 494, 494, 493, 493, 493, 492, 492, 492, 491, 491, 491, 490, 490, 490, 489, 489, 489, 489, 488, 488, 488, 488, 487, 487, 487, 487, 487, 487, 486, 486, 486, 486, 486, 486, 486, 486, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 486, 486, 486, 486, 486, 486, 486, 486, 487, 487, 487, 487, 487, 487, 488, 488, 488, 488, 489, 489, 489, 489, 490, 490, 490, 491, 491, 491, 492, 492, 492, 493, 493, 493, 494, 494, 495, 495, 495, 496, 496, 497, 497, 498, 498, 499, 499, 500, 499, 499, 498, 498, 497, 497, 497, 496, 496, 495, 495, 495, 494, 494, 494, 493, 493, 493, 492, 492, 492, 492, 491, 491, 491, 491, 490, 490, 490, 490, 490, 489, 489, 489, 489, 489, 489, 489, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 489, 489, 489, 489, 489, 489, 489, 490, 490, 490, 490, 490, 491, 491, 491, 491, 492, 492, 492, 492, 493, 493, 493, 494, 494, 494, 495, 495, 495, 496, 496, 496, 497, 497, 498, 498, 498, 499, 499, 500, 499, 499, 498, 498, 498, 497, 497, 496, 496, 496, 496, 495, 495, 495, 494, 494, 494, 494, 493, 493, 493, 493, 492, 492, 492, 492, 492, 491, 491, 491, 491, 491, 491, 491, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 491, 491, 491, 491, 491, 491, 491, 492, 492, 492, 492, 492, 493, 493, 493, 493, 494, 494, 494, 494, 495, 495, 495, 496, 496, 496, 496, 497, 497, 498, 498, 498, 499, 499, 499, 500, 499, 499, 498, 498, 498, 497, 497, 497, 496, 496, 496, 496, 495, 495, 495, 495, 494, 494, 494, 494, 493, 493, 493, 493, 493, 493, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 491, 491, 491, 491, 491, 491, 491, 491, 491, 491, 491, 491, 491, 491, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 493, 493, 493, 493, 493, 493, 494, 494, 494, 494, 495, 495, 495, 495, 496, 496, 496, 496, 497, 497, 497, 498, 498, 498, 499, 499, 499, 500, 499, 499, 499, 498, 498, 498, 497, 497, 497, 496, 496, 496, 496, 496, 495, 495, 495, 495, 495, 494, 494, 494, 494, 494, 494, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 494, 494, 494, 494, 494, 494, 495, 495, 495, 495, 495, 496, 496, 496, 496, 497, 497, 497, 497, 498, 498, 498, 499, 499, 499, 500, 499, 499, 499, 498, 498, 498, 498, 497, 497, 497, 497, 496, 496, 496, 496, 496, 495, 495, 495, 495, 495, 495, 495, 495, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 495, 495, 495, 495, 495, 495, 495, 495, 496, 496, 496, 496, 496, 497, 497, 497, 497, 497, 498, 498, 498, 499, 499, 499, 499, 500, 499, 499, 499, 498, 498, 498, 498, 497, 497, 497, 497, 497, 496, 496, 496, 496, 496, 496, 496, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 496, 496, 496, 496, 496, 496, 496, 497, 497, 497, 497, 497, 498, 498, 498, 498, 499, 499, 499, 499, 500, 499, 499, 499, 499, 498, 498, 498, 498, 497, 497, 497, 497, 497, 497, 497, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 497, 497, 497, 497, 497, 497, 498, 498, 498, 498, 498, 499, 499, 499, 499, 500, 499, 499, 499, 499, 498, 498, 498, 498, 498, 498, 497, 497, 497, 497, 497, 497, 497, 497, 497, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 497, 497, 497, 497, 497, 497, 497, 497, 497, 498, 498, 498, 498, 498, 498, 499, 499, 499, 499, 499, 500, 499, 499, 499, 499, 499, 498, 498, 498, 498, 498, 498, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 498, 498, 498, 498, 498, 498, 498, 499, 499, 499, 499, 499, 500, 499, 499, 499, 499, 499, 498, 498, 498, 498, 498, 498, 498, 498, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 498, 498, 498, 498, 498, 498, 498, 498, 498, 499, 499, 499, 499, 499, 500, 499, 499, 499, 499, 499, 499, 498, 498]
count = 0
for i in range(len(y)):
screen.fill((0, 0, 0))
pygame.time.delay(5)
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
exit()
pygame.draw.line(screen, (255, 0, 0), (0, 123), (Const.width, 123), 2)
pygame.draw.line(screen, (255, 0, 0), (0, 350), (Const.width, 350), 2)
pygame.draw.line(screen, Const.beige, (int(x_pos), y[i] - int(Const.r) * 10000), (Const.width // 2, 0), 5)
pygame.draw.circle(screen, Const.green, (int(x_pos), y[i]), int(Const.r * 10000))
pygame.display.update()