Advertisement
Guest User

Untitled

a guest
Mar 12th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 1.62 KB | None | 0 0
  1.     var test_x1 = 0;
  2.     var test_y1 = 0;
  3.     var test_x2 = 0;
  4.     var test_y2 = 0;
  5.     var test_x3 = 0;
  6.     var test_y3 = 0;
  7.     var test_color1 = 0;
  8.     var test_color2 = 0;
  9.     var test_color3 = 0;
  10.     var _this_a = 1;
  11.     var _this_b = 0;
  12.     var _this_c = 0;
  13.     var _this_d = 1;
  14.     var _this_e = 0;
  15.     var _this_f = 0;
  16.     test_x1 = 0;
  17.     test_y1 = 0;
  18.     test_x2 = 100;
  19.     test_y2 = 100;
  20.     test_x3 = 0;
  21.     test_y3 = 100;
  22.     test_color1 = -65536;
  23.     test_color2 = -65536;
  24.     test_color3 = -65536;
  25.     var m_a = 1;
  26.     var m_b = 0;
  27.     var m_c = 0;
  28.     var m_d = 1;
  29.     var m_e = 0;
  30.     var m_f = 0;
  31.     m_a = 2 / Ink.width;
  32.     m_b = 0;
  33.     m_c = 0;
  34.     m_d = -2 / Ink.height;
  35.     m_e = -1;
  36.     m_f = 1;
  37.     var oldA = _this_a;
  38.     var oldB = _this_b;
  39.     _this_f = m_e * oldB + m_f * _this_d + _this_f;
  40.     _this_e = m_e * oldA + m_f * _this_c + _this_e;
  41.     _this_d = m_c * oldB + m_d * _this_d;
  42.     _this_c = m_c * oldA + m_d * _this_c;
  43.     _this_b = m_a * oldB + m_b * _this_d;
  44.     _this_a = m_a * oldA + m_b * _this_c;
  45.     var m_a1 = 1;
  46.     var m_b1 = 0;
  47.     var m_c1 = 0;
  48.     var m_d1 = 1;
  49.     var m_e1 = 0;
  50.     var m_f1 = 0;
  51.     m_a1 = 1;
  52.     m_b1 = 0;
  53.     m_c1 = 0;
  54.     m_d1 = 1;
  55.     m_e1 = 50;
  56.     m_f1 = 50;
  57.     var oldA1 = _this_a;
  58.     var oldB1 = _this_b;
  59.     _this_f = m_e1 * oldB1 + m_f1 * _this_d + _this_f;
  60.     _this_e = m_e1 * oldA1 + m_f1 * _this_c + _this_e;
  61.     _this_d = m_c1 * oldB1 + m_d1 * _this_d;
  62.     _this_c = m_c1 * oldA1 + m_d1 * _this_c;
  63.     _this_b = m_a1 * oldB1 + m_b1 * _this_d;
  64.     _this_a = m_a1 * oldA1 + m_b1 * _this_c;
  65.     Ink.drawCommand(test_x1,test_y1,test_x2,test_y2,test_x3,test_y3,666,false,false,0,0,0,0,test_color1,test_color2,test_color3,0,0,0,0,0,0,_this_a,_this_b,_this_c,_this_d,_this_e,_this_f,0,Ink.width,Ink.height,0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement