Advertisement
Guest User

Drawing script

a guest
Dec 23rd, 2016
516
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var imgData = [ [41,-1,81,60], [81,60,87,64], [87,64,92,63], [92,63,89,73], [89,73,86,76], [86,76,80,78], [80,78,77,80], [77,80,73,84], [73,84,71,89], [71,89,72,91], [72,91,76,90], [76,90,80,87], [80,87,84,82], [84,82,85,79], [85,79,89,75], [89,75,92,71], [92,71,94,64], [94,64,92,63], [41,-1,41,6], [41,6,40,9], [40,9,58,39], [58,39,70,59], [70,59,70,64], [70,64,69,67], [69,67,70,71], [70,71,68,75], [68,75,73,74], [73,74,76,72], [70,71,59,78], [59,78,57,76], [57,76,41,83], [41,83,36,89], [36,89,24,112], [24,112,30,115], [30,115,37,112], [37,112,43,109], [43,109,53,112], [53,112,55,112], [55,112,58,113], [58,113,60,111], [60,111,60,108], [60,108,65,104], [65,104,64,102], [64,102,73,91], [76,90,69,98], [69,98,69,101], [69,101,66,104], [66,104,65,106], [65,106,63,107], [63,107,57,115], [57,115,56,122], [56,122,47,125], [47,125,44,119], [44,119,43,112], [43,112,43,109], [36,104,39,102], [39,102,42,101], [45,101,61,94], [61,94,66,91], [58,95,57,86], [57,86,59,78], [57,76,55,82], [55,82,54,90], [54,90,56,96], [70,60,74,58], [74,58,76,56], [76,56,77,54], [73,48,72,50], [72,50,69,53], [69,53,67,53], [68,54,70,54], [70,54,72,52], [72,52,74,49], [72,46,70,50], [70,50,68,51], [68,51,66,51], [83,79,79,81], [79,81,74,86], [74,86,73,88], [73,88,77,88], [77,88,82,83], [82,83,83,80], [83,80,83,79], [81,77,80,74], [80,74,79,72], [79,72,80,76], [80,76,80,78], [81,86,80,92], [80,92,79,96], [79,96,79,88], [51,111,48,118], [48,118,48,121], [48,121,49,124], [56,121,54,117], [54,117,52,112], [42,110,42,119], [42,119,44,126], [44,126,44,128], [44,128,50,136], [50,136,53,137], [53,137,55,137], [55,137,55,134], [55,134,58,130], [58,130,64,127], [64,127,68,127], [68,127,74,128], [74,128,76,129], [76,129,76,123], [76,123,75,117], [75,117,75,106], [76,129,82,126], [82,126,87,117], [87,117,88,111], [88,111,83,114], [83,114,78,115], [78,115,70,119], [70,119,63,122], [86,112,86,105], [86,105,84,104], [84,104,78,104], [78,104,76,105], [76,105,66,112], [70,109,70,119], [67,104,68,109], [68,109,69,109], [69,109,71,107], [72,106,74,104], [74,104,78,101], [78,101,79,100], [79,100,79,102], [79,102,80,103], [81,104,91,89], [91,89,91,88], [91,88,93,83], [93,83,95,77], [95,77,96,73], [96,73,98,70], [98,70,98,68], [98,68,94,64], [93,67,94,67], [94,67,96,69], [96,69,94,71], [94,71,92,71], [84,81,87,85], [87,85,91,88], [91,89,86,86], [86,86,83,84], [87,117,97,115], [97,115,100,113], [100,113,109,103], [109,103,109,102], [107,102,111,102], [111,102,116,98], [116,98,121,95], [121,95,129,93], [129,93,134,92], [134,92,128,89], [128,89,121,84], [121,84,117,83], [117,83,115,81], [115,81,111,86], [111,86,107,89], [107,89,98,89], [98,89,96,92], [96,92,100,95], [100,95,100,97], [100,97,105,97], [105,97,107,99], [107,99,107,102], [104,108,98,108], [98,108,93,109], [93,109,88,112], [90,116,91,114], [91,114,94,112], [94,112,97,111], [97,111,102,111], [101,97,99,100], [99,100,96,101], [96,101,93,100], [93,100,90,106], [90,106,86,106], [84,100,92,98], [92,98,94,95], [94,95,90,91], [86,97,92,97], [93,84,99,85], [99,85,100,83], [100,83,102,77], [102,77,97,72], [100,83,94,82], [108,88,106,82], [106,82,107,81], [107,81,114,82], [110,86,108,83], [133,91,135,92], [135,92,138,87], [138,87,138,84], [138,84,121,84], [133,91,132,91], [80,104,78,106], [78,106,77,110], [77,110,78,115], [86,105,84,106], [84,106,84,113], [78,106,84,106], [117,127,111,125], [111,125,104,121], [104,121,99,114], [60,129,61,138], [61,138,64,144], [64,144,69,143], [69,143,75,139], [75,139,76,136], [76,136,84,130], [84,130,84,123], [66,127,68,132], [68,132,71,135], [71,135,74,136], [74,136,76,136], [66,144,69,150], [69,150,74,149], [74,149,79,147], [79,147,78,141], [78,141,75,139], [69,150,73,159], [73,159,75,162], [75,162,83,161], [83,161,84,161], [84,161,85,156], [85,156,83,153], [83,153,85,149], [85,149,89,145], [89,145,90,139], [90,139,86,130], [86,130,84,130], [86,136,81,144], [79,146,81,147], [81,147,82,149], [84,123,91,129], [91,129,94,130], [94,130,97,129], [97,129,97,131], [97,131,100,135], [100,135,105,139], [105,139,111,142], [111,142,114,142], [90,131,95,132], [95,132,96,131], [96,131,98,135], [98,135,104,140], [104,140,110,143], [110,143,112,143], [112,143,108,150], [108,150,102,149], [102,149,97,149], [97,149,94,141], [94,141,90,131], [98,150,105,151], [105,151,107,152], [107,152,104,163], [104,163,103,178], [103,171,100,168], [100,168,101,154], [101,154,96,153], [96,153,90,155], [90,155,84,169], [84,169,84,181], [84,181,81,170], [84,161,84,169], [98,150,97,151], [97,151,101,154], [75,162,74,175], [74,175,78,187], [78,187,78,188], [107,122,110,121], [110,121,111,119], [111,119,111,117], [111,119,114,124], [114,124,118,128], [118,128,125,132], [125,132,126,132], [126,132,127,133], [127,133,127,134], [127,134,120,138], [120,138,114,142], [75,170,76,167], [76,167,78,166], [78,166,80,167], [80,167,80,169], [80,169,78,171], [78,171,76,171], [76,171,75,170], [76,169,76,170], [76,170,77,170], [77,170,78,169], [78,169,78,167], [78,167,77,167], [77,167,76,169], [86,173,89,164], [89,164,98,165], [98,165,97,174], [96,173,96,167], [96,167,90,166], [90,166,88,173], [89,171,91,169], [91,169,94,169], [94,169,96,171], [96,171,94,173], [94,173,90,173], [90,173,89,171], [89,169,91,168], [91,168,95,168], [95,168,96,169], [104,178,105,174], [105,174,107,160], [107,160,112,148], [112,148,121,142], [121,142,127,139], [127,139,131,136], [131,136,131,132], [131,132,127,129], [127,129,121,127], [121,127,116,123], [116,123,113,119], [113,119,113,117], [111,117,113,117], [113,117,120,116], [120,116,124,116], [124,116,128,117], [128,117,138,116], [138,116,145,117], [145,117,154,123], [154,123,159,128], [159,128,160,132], [160,132,145,131], [145,131,141,129], [141,129,139,126], [139,126,135,125], [160,132,161,137], [161,137,158,155], [158,155,160,161], [160,161,160,170], [160,170,155,182], [155,182,151,193], [151,193,150,195], [121,116,117,119], [117,119,119,122], [119,122,129,128], [129,128,133,127], [133,127,139,130], [139,130,143,136], [143,136,159,136], [159,136,161,137], [143,136,134,144], [134,144,130,143], [130,143,125,145], [125,145,115,152], [115,152,111,161], [111,161,107,172], [107,172,106,177], [106,177,109,179], [113,179,131,158], [131,158,137,156], [137,156,143,148], [143,148,146,141], [146,141,152,145], [152,145,158,155], [148,144,140,158], [140,158,132,160], [132,160,115,181], [137,156,140,157], [140,157,142,157], [142,157,147,160], [147,160,148,164], [148,164,148,170], [148,170,146,174], [146,174,149,177], [149,177,154,180], [154,180,156,180], [122,118,124,122], [124,122,125,122], [125,122,126,121], [126,121,128,119], [128,119,131,121], [131,121,132,124], [132,124,129,127], [132,146,124,151], [124,151,126,152], [126,152,125,156], [125,156,122,160], [122,160,119,162], [119,162,115,161], [115,161,111,168], [111,168,110,175], [110,175,111,177], [123,157,120,160], [120,160,118,160], [118,160,116,157], [116,157,117,154], [117,154,120,152], [120,152,122,152], [122,152,124,154], [124,154,123,157], [121,159,122,156], [122,156,120,154], [120,154,117,154], [113,149,115,151], [115,151,115,152], [115,152,111,153], [126,125,126,123], [126,123,128,121], [128,121,130,121], [126,125,127,126], [127,126,129,126], [129,126,131,124], [131,124,130,121], [127,122,128,122], [128,122,129,123], [129,123,130,125], [63,142,-1,147], [-1,147,-2,148], [-2,148,-2,167], [-2,167,74,169], [66,145,-1,148], [-1,148,-2,149], [29,147,29,145], [85,180,78,189], [78,189,72,206], [72,206,61,210], [61,210,-10,208], [-10,208,-12,231], [-12,231,59,236], [59,236,70,240], [70,240,102,245], [102,245,104,245], [104,245,128,242], [128,242,137,243], [137,243,168,254], [168,254,182,257], [182,257,189,263], [189,263,169,274], [169,274,183,277], [183,277,191,272], [191,272,195,271], [195,271,213,272], [213,272,235,259], [235,259,254,245], [254,245,264,240], [264,240,272,235], [272,209,242,225], [242,225,210,234], [210,234,176,221], [176,221,152,217], [152,217,131,216], [131,216,127,218], [127,218,117,218], [117,218,109,215], [109,215,88,214], [88,214,81,223], [81,223,88,231], [88,231,90,235], [90,235,103,245], [85,178,85,183], [85,183,110,184], [110,184,115,188], [115,188,141,189], [141,189,162,217], [165,215,142,182], [142,182,117,182], [117,182,113,179], [113,179,86,177], [86,177,85,178], [86,178,86,182], [86,182,110,182], [110,182,115,186], [115,186,141,187], [141,187,141,189], [141,187,142,182], [151,196,149,199], [149,199,132,200], [132,200,121,204], [121,204,109,203], [109,203,100,194], [100,194,83,193], [83,193,78,191], [88,232,93,226], [93,226,106,224], [106,224,104,229], [104,229,95,231], [95,231,92,235], [106,224,115,233], [115,233,114,241], [114,241,112,244], [106,244,109,241], [109,241,110,235], [110,235,104,229], [72,207,71,209], [71,209,60,212], [60,212,-9,210], [-9,210,-10,211], [29,209,29,210], [154,249,169,240], [169,240,178,235], [178,235,181,231], [181,231,181,226], [181,226,176,221], [210,234,208,237], [208,237,199,241], [199,241,193,247], [193,247,186,255], [186,255,181,257], [189,263,207,261], [207,261,221,262], [221,262,229,259], [229,259,243,250], [243,250,256,244], [271,224,251,240], [251,240,238,245], [238,245,222,250], [222,250,208,261], [172,273,182,274], [182,274,187,272], [104,121,112,106], [112,106,119,98], [119,98,139,97], [139,97,143,99], [143,99,164,100], [164,100,164,105], [164,105,141,105], [141,105,137,101], [137,101,116,102], [140,98,139,101], [111,110,125,111], [125,111,127,116], [127,116,142,112], [142,112,156,122], [156,122,157,126], [136,116,142,114], [142,114,155,123], [155,123,156,125], [150,118,152,115], [152,115,158,113], [158,113,164,113], [164,113,160,105], [164,113,168,122], [168,122,169,125], [169,125,172,124], [172,124,164,105], [163,135,172,131], [172,131,179,130], [179,130,181,128], [181,128,181,126], [172,124,178,126], [178,126,181,126], [181,126,185,124], [185,124,192,125], [192,125,201,123], [201,123,206,120], [206,120,209,119], [209,119,216,111], [216,111,223,103], [223,103,236,96], [236,96,272,71], [185,152,200,149], [200,149,212,137], [212,137,224,135], [224,135,208,152], [208,152,220,151], [220,151,231,139], [231,139,241,134], [241,134,256,121], [256,121,272,105], [224,135,227,135], [227,135,237,124], [237,124,260,107], [260,107,272,98], [271,91,254,106], [254,106,237,116], [237,116,234,120], [234,120,227,132], [232,134,216,149], [216,149,212,150], [206,120,206,126], [206,126,202,133], [202,133,195,141], [195,141,190,150], [178,144,184,135], [184,135,185,127], [185,127,185,124], [160,132,165,140], [165,140,173,151], [173,151,179,167], [179,167,181,173], [181,173,177,176], [177,176,169,179], [169,179,160,183], [160,183,153,188], [155,197,166,186], [166,186,176,183], [176,183,188,180], [188,180,192,176], [192,176,191,171], [191,171,184,158], [184,158,179,148], [179,148,175,142], [175,142,170,140], [170,140,165,140], [176,143,192,159], [192,159,197,169], [197,169,205,175], [205,175,206,179], [206,179,196,191], [196,191,183,197], [183,197,176,203], [176,203,170,215], [170,215,165,219], [192,159,206,167], [206,167,216,172], [216,172,223,179], [223,179,226,182], [226,182,226,189], [226,189,221,200], [221,200,214,207], [214,207,204,214], [204,214,195,220], [195,220,191,227], [180,200,184,207], [184,207,206,213], [157,185,160,192], [160,192,169,199], [169,199,177,202], [165,202,162,209], [188,214,184,220], [211,225,207,229], [207,212,212,217], [212,217,245,223], [218,174,223,175], [223,175,240,181], [240,181,249,182], [249,182,254,188], [254,188,262,192], [264,204,263,208], [263,208,262,212], [250,183,268,182], [228,188,237,190], [207,180,215,182], [194,178,197,179], [187,174,183,173] ];
  2.  
  3. var drawIndex = 0, imageScale = 0.8;
  4. function drawImage(x, y) {
  5. setTimeout(function () {
  6. /* Divide by two because aspect ratio stretches things */
  7. MPP.addons.draw.mkline(x+imgData[drawIndex][1]/2*imageScale,
  8. y+imgData[drawIndex][0]*imageScale,
  9. x+imgData[drawIndex][3]/2*imageScale,
  10. y+imgData[drawIndex][2]*imageScale, 1);
  11. drawIndex++;
  12. if (drawIndex < imgData.length)
  13. drawImage(x, y);
  14. else
  15. drawIndex = 0;
  16. }, 15)
  17. }
  18.  
  19. drawImage (100, 80);
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement