Skip to content

Commit

Permalink
upd docs
Browse files Browse the repository at this point in the history
  • Loading branch information
haykh committed Jun 24, 2024
1 parent 7d21042 commit e6f462b
Show file tree
Hide file tree
Showing 11 changed files with 398 additions and 335 deletions.
93 changes: 0 additions & 93 deletions docs/3p1.md

This file was deleted.

88 changes: 88 additions & 0 deletions docs/cover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
document.addEventListener("DOMContentLoaded", (event) => {

const sketch = (p) => {
const s = 0.6;
const w = 1280 * s, h = 384 * s;
const cell = 15 * s;
var text_bg;
const noise_scale = 0.3;
const noise_variability = 0.2;
const Period = 100;
let DARK;

var matrix = [[0.36, 0.48, -0.8], [-0.8, 0.6, 0], [0.48, 0.64, 0.6]]

p.preload = function () {
text_bg = p.createGraphics(w, h);
text_bg.noStroke();
text_bg.fill(255, 0, 0);
text_bg.textFont('monospace');
text_bg.textSize(280 * s);
text_bg.textAlign(p.CENTER, p.CENTER);
text_bg.text("entity", w / 2, h / 2);
}

const get_theme = () => {
let color = document.body.getAttribute("data-md-color-media");
if (color === "(prefers-color-scheme: dark)") {
DARK = true;
} else {
DARK = false;
}
}

const make = () => {
let f = 0.1;
for (let i = 0; i < (w / cell); ++i) {
for (let j = 0; j < (h / cell); ++j) {
let t = (p.frameCount) / Period;
let triangle = 2 * Period * 0.8 * Math.abs(t - Math.floor(t + 0.5));
let k = noise_variability * triangle;
let x = i * matrix[0][0] + j * matrix[0][1] + k * matrix[0][2];
let y = i * matrix[1][0] + j * matrix[1][1] + k * matrix[1][2];
let z = i * matrix[2][0] + j * matrix[2][1] + k * matrix[2][2];
let c = p.noise(x * noise_scale, y * noise_scale, z * noise_scale) * 200;
let a = text_bg.get(i * cell, j * cell)[0] / 30;
let fl = c * (a * f + (1.0 - f)) / 2;
if (fl < 70) fl /= 10.0;
"2e303e"

if (DARK) {
p.fill(46 + 2 * (46 / 62) * fl, 48 + 2 * (48 / 62) * fl, 62 + 2 * fl);
} else {
p.fill(255 - 2 * (62 / 46) * fl, 255 - 2 * (62 / 48) * fl, 255 - 2 * fl);
}
p.rect(i * cell, j * cell, cell * 0.9, cell * 0.9);
}
}
}

p.setup = function () {
get_theme();
p.frameRate(10);
let cnv = p.createCanvas(w, h);
cnv.parent('cover');
if (DARK) {
p.background(0)
p.stroke(46, 47, 62);
} else {
p.background(255);
p.stroke(255);
}
p.strokeWeight(0.25);
p.noiseSeed(99);
}

p.draw = function () {
get_theme();
if (DARK) {
p.stroke(46, 47, 62);
} else {
p.stroke(255);
}
make();
}
}

const myp5 = new p5(sketch);
}, false);
180 changes: 0 additions & 180 deletions docs/events/sceecs2024/pic.md

This file was deleted.

9 changes: 2 additions & 7 deletions docs/getting-started/compile-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ First, make sure you have all [the necessary dependencies](dependencies.md) inst
| `pgen` | problem generator | see `<engine>/pgen/` directory | `dummy` |
| `precision` | floating point precision | `single`, `double` | `single` |
| `output` | enable output | `ON`, `OFF` | `OFF` |
| `mpi` | enable multi-node support | `ON`, `OFF` | `OFF` |
| `DEBUG` | enable debug mode | `ON`, `OFF` | `OFF` |
| `TESTS` | compile the unit tests | `ON`, `OFF` | `OFF` |

Expand Down Expand Up @@ -129,10 +130,4 @@ You may also specify the `--output-on-failure` flag to see the output of the tes
To run only specific tests, you can use the `-R` flag followed by the regular expression that matches the test name. For example, to run all the tests that contain the word `particle`, you can use:
```shell
ctest --test-dir build/ -R particle
```

## Docker

!!! warning

While the Docker environment for the code is available (see `docker` directory in the root of the repository), it is not documented yet.
```
Loading

0 comments on commit e6f462b

Please sign in to comment.