diff --git a/src/routes/zhen/Comps/TopAnimatedBackground.svelte b/src/routes/zhen/Comps/TopAnimatedBackground.svelte
index bbd718d..f7b05cf 100644
--- a/src/routes/zhen/Comps/TopAnimatedBackground.svelte
+++ b/src/routes/zhen/Comps/TopAnimatedBackground.svelte
@@ -5,6 +5,7 @@
// Params
let mouseMoveScale: number = 0.25;
+ let targetTextLenght: number = 70;
// Site variables
let mousePos: Vector2;
@@ -53,22 +54,53 @@
windowRef.removeEventListener("resize", updateDimensions);
};
});
+
+ const programmingLanguages: string[] = [
+ "C++",
+ "C#",
+ "ARDUINO",
+ "PYTHON",
+ "JAVA",
+ "JAVASCRIPT",
+ "TYPESCRIPT",
+ "HTML",
+ "CSS"
+ ];
+
+ function getRandomInt(max: number) {
+ return Math.floor(Math.random() * max);
+ }
+
+ function GrabRandomString(){
+ let outString: string = "";
+ while (outString.length < targetTextLenght) {
+ outString += programmingLanguages[getRandomInt(programmingLanguages.length)] + " ";
+ }
+
+ return outString; // At about target size
+ }
+