MCPcopy Create free account
hub / github.com/alignoth/alignoth / hS

Function hS

resources/vega.min.js:25887–26054  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25885 cS = 64,
25886 fS = 2048;
25887 function hS() {
25888 var t,
25889 e,
25890 n,
25891 r,
25892 i,
25893 o,
25894 a,
25895 s = [256, 256],
25896 u = yS,
25897 l = [],
25898 c = Math.random,
25899 f = {};
25900 function h(t, e, n) {
25901 for (
25902 var r,
25903 i,
25904 o,
25905 a = e.x,
25906 l = e.y,
25907 f = Math.hypot(s[0], s[1]),
25908 h = u(s),
25909 d = c() < 0.5 ? 1 : -1,
25910 p = -d;
25911 (r = h((p += d))) &&
25912 ((i = ~~r[0]),
25913 (o = ~~r[1]),
25914 !(Math.min(Math.abs(i), Math.abs(o)) >= f));
25915
25916 )
25917 if (
25918 ((e.x = a + i),
25919 (e.y = l + o),
25920 !(
25921 e.x + e.x0 < 0 ||
25922 e.y + e.y0 < 0 ||
25923 e.x + e.x1 > s[0] ||
25924 e.y + e.y1 > s[1]
25925 ) &&
25926 (!n || !pS(e, t, s[0])) &&
25927 (!n || mS(e, n)))
25928 ) {
25929 for (
25930 var g,
25931 m = e.sprite,
25932 y = e.width >> 5,
25933 v = s[0] >> 5,
25934 _ = e.x - (y << 4),
25935 x = 127 & _,
25936 b = 32 - x,
25937 w = e.y1 - e.y0,
25938 k = (e.y + e.y0) * v + (_ >> 5),
25939 A = 0;
25940 A < w;
25941 A++
25942 ) {
25943 g = 0;
25944 for (var M = 0; M <= y; M++)

Callers 1

wSFunction · 0.85

Calls 14

eFunction · 0.85
dSFunction · 0.85
gSFunction · 0.85
vSFunction · 0.85
ScFunction · 0.70
tFunction · 0.70
rFunction · 0.70
iFunction · 0.70
oFunction · 0.70
nFunction · 0.70
aFunction · 0.70
cFunction · 0.70

Tested by

no test coverage detected