Update neural network background configuration: reduce node count and connection distance, adjust glow and node colors, and modify shadow blur for improved visual clarity and performance.
This commit is contained in:
@@ -27,11 +27,11 @@ class Node {
|
|||||||
|
|
||||||
// Konfiguration
|
// Konfiguration
|
||||||
const config = {
|
const config = {
|
||||||
nodeCount: 120,
|
nodeCount: 30,
|
||||||
connectDist: 120,
|
connectDist: 80,
|
||||||
lineAlpha: 0.08,
|
lineAlpha: 0.08,
|
||||||
glowColor: 'rgba(30,150,255,0.4)',
|
glowColor: 'rgba(152, 165, 177, 0.4)',
|
||||||
nodeColor: 'rgba(200,230,255,0.6)'
|
nodeColor: 'rgba(135, 162, 184, 0.6)'
|
||||||
};
|
};
|
||||||
|
|
||||||
// Erzeuge Nodes
|
// Erzeuge Nodes
|
||||||
@@ -47,7 +47,7 @@ function animate() {
|
|||||||
// Linien zeichnen
|
// Linien zeichnen
|
||||||
ctx.strokeStyle = config.glowColor;
|
ctx.strokeStyle = config.glowColor;
|
||||||
ctx.lineWidth = 0.8;
|
ctx.lineWidth = 0.8;
|
||||||
ctx.shadowBlur = 8;
|
ctx.shadowBlur = 3;
|
||||||
ctx.shadowColor = config.glowColor;
|
ctx.shadowColor = config.glowColor;
|
||||||
|
|
||||||
for (let i = 0; i < nodes.length; i++) {
|
for (let i = 0; i < nodes.length; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user