Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
## Version 1.2.3 (November 2025)

- Remove C rewrite progress bar.
- Edited BiomeGen page for v2.1.6.

## Version 1.2.2 (November 2025)

- Changed C language colour.
- Changed C language colour.

## Version 1.2.1 (November 2025)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# My Website
### Released August 2025
### Version 1.2.2
### Version 1.2.3
### Updated November 2025

<br/>
Expand Down
5 changes: 0 additions & 5 deletions projects/biomegen/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@
<img class="project-page-logo" src="/images/projects/biomegen/logo.png"
alt="BiomeGen Logo">

<!--C Rewrite Progress-->
<div id="c-rewrite-progress-bar">
<div id="c-rewrite-progress-bar-inner"></div>
</div>

<!--Page Description-->
<p class="paragraph-text" id="title-summary">
BiomeGen is a map generation and visualization console app,
Expand Down
46 changes: 13 additions & 33 deletions projects/biomegen/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

const startTime = new Date();

// Import From Data Loader

import { projects } from "/data-loader.js";

// Test Result Class

class TestResult {
Expand All @@ -24,36 +20,14 @@ class TestResult {
}


// C Rerwite Progress Bar

// Getting Number of Lines Left

let urlName =
"https://raw.githubusercontent.com/Liam-Ralph/biomegen/refs/heads/c-rewrite/main_left.txt";
let response = await fetch(urlName);
const fileText = await response.text();
const linesLeft = fileText.split("\n").length;

// Calculating Progress Percentage

const linesTotal = projects[0].linesList[0];
const progress = (linesTotal - linesLeft) / linesTotal;

// Updating Progress bar

let barInner = document.getElementById("c-rewrite-progress-bar-inner");
barInner.textContent =
"C Rewrite Progress: " + Math.round(progress * 1000) / 10 + "%";
barInner.style.width =
(document.getElementById("c-rewrite-progress-bar").offsetWidth * progress - 20) + "px";


// Statistics

// Getting CSV Data

urlName = "https://raw.githubusercontent.com/Liam-Ralph/biomegen/refs/heads/main/autorun_results.csv";
response = await fetch(urlName);

let urlName =
"https://raw.githubusercontent.com/Liam-Ralph/biomegen/refs/heads/main/autorun_results.csv";
let response = await fetch(urlName);
const csvLines = await response.text()
let csvTextLines = csvLines.split("\n");
csvTextLines = csvTextLines.splice(1, csvTextLines.length - 1);
Expand All @@ -63,7 +37,7 @@ csvTextLines = csvTextLines.splice(1, csvTextLines.length - 1);
let testResults = [];

for (let i in csvTextLines) {
let textLine = csvTextLines[i].split(", ");
let textLine = csvTextLines[i].split(", ");
testResults.push(
new TestResult(
textLine[0], Number(textLine[1]), Number(textLine[2]), // version, width, height
Expand All @@ -76,6 +50,8 @@ for (let i in csvTextLines) {
);
}

const newestVersion = testResults[testResults.length - 1].version;

// Getting Graph Values

let xValues = {
Expand Down Expand Up @@ -140,7 +116,7 @@ for (let i in testResults) {
result.std_dev / result.mean * 100
);

if (result.version === testResults[0].version) {
if (result.version === newestVersion) {

xValues["Resolution"].push(result.width + "x" + result.height);
xValues["Pixels"].push(result.width * result.height);
Expand All @@ -163,7 +139,7 @@ for (let i in testResults) {

}

if (result.version === testResults[0].version) {
if (result.version === newestVersion) {

let index = 0;

Expand Down Expand Up @@ -220,21 +196,25 @@ new Chart(graph, {
{
label: "5th Percentile",
backgroundColor: "#808080",
borderColor: "#808080",
data: yValues["Version vs Time"][1]
},
{
label: "Mean",
backgroundColor: "#0000FF",
borderColor: "#0000FF",
data: yValues["Version vs Time"][0]
},
{
label: "50th Percentile",
backgroundColor: "#00FF00",
borderColor: "#00FF00",
data: yValues["Version vs Time"][2]
},
{
label: "95th Percentile",
backgroundColor: "#808080",
borderColor: "#808080",
data: yValues["Version vs Time"][3]
}
]
Expand Down