mirror of
https://github.com/PavelDoGreat/WebGL-Fluid-Simulation.git
synced 2025-10-04 18:01:40 +02:00
update script and font
This commit is contained in:
BIN
iconfont.ttf
BIN
iconfont.ttf
Binary file not shown.
27
script.js
27
script.js
@@ -127,25 +127,40 @@ function startGUI () {
|
|||||||
gui.add(config, 'CURL', 0, 50).name('vorticity').step(1);
|
gui.add(config, 'CURL', 0, 50).name('vorticity').step(1);
|
||||||
gui.add(config, 'SPLAT_RADIUS', 0.0001, 0.01).name('splat radius');
|
gui.add(config, 'SPLAT_RADIUS', 0.0001, 0.01).name('splat radius');
|
||||||
|
|
||||||
var randomSplats = gui.add({ fun: function () {
|
gui.add({ fun: function () {
|
||||||
splatStack.push(parseInt(Math.random() * 20) + 5);
|
splatStack.push(parseInt(Math.random() * 20) + 5);
|
||||||
}
|
} }, 'fun').name('Random splats');
|
||||||
}, 'fun').name('Random splats');
|
|
||||||
|
|
||||||
var github = gui.add({ fun : function () { window.open('https://github.com/PavelDoGreat/WebGL-Fluid-Simulation'); } }, 'fun').name('Github');
|
var github = gui.add({ fun : function () {
|
||||||
|
window.open('https://github.com/PavelDoGreat/WebGL-Fluid-Simulation');
|
||||||
|
ga('send', 'event', 'link button', 'github');
|
||||||
|
} }, 'fun').name('Github');
|
||||||
github.__li.className = 'cr function bigFont';
|
github.__li.className = 'cr function bigFont';
|
||||||
github.__li.style.borderLeft = '3px solid #8C8C8C';
|
github.__li.style.borderLeft = '3px solid #8C8C8C';
|
||||||
var githubIcon = document.createElement('span');
|
var githubIcon = document.createElement('span');
|
||||||
github.domElement.parentElement.appendChild(githubIcon);
|
github.domElement.parentElement.appendChild(githubIcon);
|
||||||
githubIcon.className = 'icon github';
|
githubIcon.className = 'icon github';
|
||||||
|
|
||||||
var twitter = gui.add({ fun : function () { window.open('https://twitter.com/PavelDoGreat'); } }, 'fun').name('Twitter');
|
var twitter = gui.add({ fun : function () {
|
||||||
|
window.open('https://twitter.com/PavelDoGreat');
|
||||||
|
ga('send', 'event', 'link button', 'twitter');
|
||||||
|
} }, 'fun').name('Twitter');
|
||||||
twitter.__li.className = 'cr function bigFont';
|
twitter.__li.className = 'cr function bigFont';
|
||||||
twitter.__li.style.borderLeft = '3px solid #8C8C8C';
|
twitter.__li.style.borderLeft = '3px solid #8C8C8C';
|
||||||
var twitterIcon = document.createElement('span');
|
var twitterIcon = document.createElement('span');
|
||||||
twitter.domElement.parentElement.appendChild(twitterIcon);
|
twitter.domElement.parentElement.appendChild(twitterIcon);
|
||||||
twitterIcon.className = 'icon twitter';
|
twitterIcon.className = 'icon twitter';
|
||||||
|
|
||||||
|
var app = gui.add({ fun : function () {
|
||||||
|
window.open('https://play.google.com/store/apps/details?id=games.paveldogreat.fluidsim');
|
||||||
|
ga('send', 'event', 'link button', 'app');
|
||||||
|
} }, 'fun').name('Check out new improved version');
|
||||||
|
app.__li.className = 'cr function appBigFont';
|
||||||
|
app.__li.style.borderLeft = '3px solid #00FF7F';
|
||||||
|
var appIcon = document.createElement('span');
|
||||||
|
app.domElement.parentElement.appendChild(appIcon);
|
||||||
|
appIcon.className = 'icon app';
|
||||||
|
|
||||||
gui.close();
|
gui.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user