<commit_before><html>

<head>
<meta charset="utf-8"/>
<title>Sneak</title>
<style>
body { background: gray; }
</style>

<script type="x-shader/x-vertex" id="sprite-vs">
#version 100
precision mediump float;
attribute vec2 pos;
attribute vec2 uv;
attribute float size;
varying vec2 va_uv;
uniform mat4 mvp;

void main() {
	va_uv = uv;
	gl_PointSize = size;
	gl_Position = mvp*vec4(pos, 0.0, 1.0);
}
</script>

<script type="x-shader/x-fragment" id="sprite-fs">
#version 100
precision mediump float;
varying vec2 va_uv;
uniform sampler2D tex;
const float uvMul = 1.0 / 16.0;

void main() {
	vec2 uv = (gl_PointCoord + va_uv) * uvMul;
	vec4 col = texture2D(tex, uv);
	if (col.a < 0.5) discard;
	gl_FragColor = col;
}
</script>

<script type="x-shader/x-vertex" id="bg-vs">
#version 100
precision mediump float;
attribute vec4 pos;
varying vec2 uv;
uniform mat4 mvp;

void main() {
	uv = pos.zw;
	gl_Position = mvp*vec4(pos.xy, 0.0, 1.0);
}
</script>

<script type="x-shader/x-fragment" id="bg-fs">
#version 100
precision mediump float;
varying vec2 uv;
uniform sampler2D tex;
uniform float timer;

vec4 waveCol(float a) {
	a = max(1.0 - abs(timer - a), 0.0);
	float mul = min(timer, 2.0 - timer);
	a = mul*a*a*a;
	return vec4(0.1+a, 0.1+a, 0.4+a, 1.0);
}

void main() {
	vec4 col = texture2D(tex, uv);
	if (col.a >= 1.0) {
		gl_FragColor = col;
	} else {
		gl_FragColor = waveCol(col.a);
		//gl_FragColor = vec4(0.5, 0.5, 1.0, 1.0);
	}
}
</script>

<script type="x-shader/x-vertex" id="death-vs">
#version 100
precision mediump float;
attribute vec4 pos;
varying vec2 uv;

void main() {
	uv = pos.zw;
	vec2 xy = vec2(pos.x, pos.y);
	gl_Position = vec4(xy, 0.0, 1.0);
}
</script>

<script type="x-shader/x-fragment" id="death-fs">
#version 100
precision mediump float;
varying vec2 uv;
uniform sampler2D tex;

void main() {
	vec4 col = texture2D(tex, uv);
	if (col.a < 0.5) col = vec4(0.0, 0.0, 0.0, 1.0);
	gl_FragColor = col;
}
</script>

</head>

<body onload="main();">
<canvas id="can" width="512" height="512"></canvas>
<script type="text/javascript" src="estk.min.js"></script>
<script type="text/javascript" src="game.js"></script>
</body>

</html>
<commit_msg>Fix: Html center.<commit_after><html>

<head>
<meta charset="utf-8"/>
<title>Sneak</title>
<style>
body { margin: 0px; padding: 40px; background: gray; }
</style>

<script type="x-shader/x-vertex" id="sprite-vs">
#version 100
precision mediump float;
attribute vec2 pos;
attribute vec2 uv;
attribute float size;
varying vec2 va_uv;
uniform mat4 mvp;

void main() {
	va_uv = uv;
	gl_PointSize = size;
	gl_Position = mvp*vec4(pos, 0.0, 1.0);
}
</script>

<script type="x-shader/x-fragment" id="sprite-fs">
#version 100
precision mediump float;
varying vec2 va_uv;
uniform sampler2D tex;
const float uvMul = 1.0 / 16.0;

void main() {
	vec2 uv = (gl_PointCoord + va_uv) * uvMul;
	vec4 col = texture2D(tex, uv);
	if (col.a < 0.5) discard;
	gl_FragColor = col;
}
</script>

<script type="x-shader/x-vertex" id="bg-vs">
#version 100
precision mediump float;
attribute vec4 pos;
varying vec2 uv;
uniform mat4 mvp;

void main() {
	uv = pos.zw;
	gl_Position = mvp*vec4(pos.xy, 0.0, 1.0);
}
</script>

<script type="x-shader/x-fragment" id="bg-fs">
#version 100
precision mediump float;
varying vec2 uv;
uniform sampler2D tex;
uniform float timer;

vec4 waveCol(float a) {
	a = max(1.0 - abs(timer - a), 0.0);
	float mul = min(timer, 2.0 - timer);
	a = mul*a*a*a;
	return vec4(0.1+a, 0.1+a, 0.4+a, 1.0);
}

void main() {
	vec4 col = texture2D(tex, uv);
	if (col.a >= 1.0) {
		gl_FragColor = col;
	} else {
		gl_FragColor = waveCol(col.a);
		//gl_FragColor = vec4(0.5, 0.5, 1.0, 1.0);
	}
}
</script>

<script type="x-shader/x-vertex" id="death-vs">
#version 100
precision mediump float;
attribute vec4 pos;
varying vec2 uv;

void main() {
	uv = pos.zw;
	vec2 xy = vec2(pos.x, pos.y);
	gl_Position = vec4(xy, 0.0, 1.0);
}
</script>

<script type="x-shader/x-fragment" id="death-fs">
#version 100
precision mediump float;
varying vec2 uv;
uniform sampler2D tex;

void main() {
	vec4 col = texture2D(tex, uv);
	if (col.a < 0.5) col = vec4(0.0, 0.0, 0.0, 1.0);
	gl_FragColor = col;
}
</script>

</head>

<body onload="main();">
<div style="width: 100%; text-align: center;">
<canvas id="can" width="512" height="512"></canvas>
</div>
<script type="text/javascript" src="estk.min.js"></script>
<script type="text/javascript" src="game.js"></script>
</body>

</html>

{'fraction_non_alphanumeric': 0.1835070231082918, 'fraction_numerical': 0.050747621205256006, 'mean_word_length': 4.1577102803738315, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7007943', 'n_tokens_mistral': 2041, 'n_tokens_neox': 1893, 'n_words': 486}