Minor improvements xd

This commit is contained in:
Andras Schmelczer 2023-05-21 19:19:12 +01:00
commit 0e97e54ffe
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
21 changed files with 189 additions and 184 deletions

View file

@ -3,16 +3,6 @@ import { AgentSettings } from './pipelines/agents/agent-settings';
import { BrushSettings } from './pipelines/brush/brush-settings';
import { DiffusionSettings } from './pipelines/diffusion/diffusion-settings';
import { RenderSettings } from './pipelines/render/render-settings';
import { rgb255 } from './utils/colors/rgb255';
const palette = {
blue: rgb255(0, 110, 202),
red: rgb255(232, 141, 122),
green: rgb255(90, 188, 94),
purple: rgb255(161, 90, 188),
yellow: rgb255(255, 204, 0),
beige: rgb255(229, 204, 175),
};
export const settings: GameLoopSettings &
AgentSettings &
@ -21,29 +11,31 @@ export const settings: GameLoopSettings &
RenderSettings = {
agentCount: 4_000_000, // requires restart
aggressionFactor: 0.5, // requires restart
nextGenerationSpawnRadius: 1,
nextGenerationSpawnInterval: 2,
aggressionFactor: 3,
nextGenerationSpawnRadius: 5,
nextGenerationSpawnInterval: 1,
renderSpeed: 10,
renderSpeed: 2,
simulatedDelayMs: 0,
brushWidth: 20,
brushWidthRandomness: 8,
brushWidth: 12,
brushWidthRandomness: 5.5,
brushTrailWeight: 5,
moveSpeed: 40,
turnSpeed: 20,
moveSpeed: 80,
turnSpeed: 550,
sensorOffsetAngle: 30,
sensorOffsetDistance: 60,
sensorOffsetDistance: 30,
turnWhenGoingInTheRightDirection: 0.05,
turnWhenLost: 0.2,
individualTrailWeight: 0.5,
deinfectionProbability: 0.001,
diffusionRateTrails: 0.4, // inverse
diffusionRateTrails: 2, // inverse
decayRateTrails: 0.9, // inverse
diffusionRateBrush: 4, // inverse
decayRateBrush: 0.995, // inverse
decayRateBrush: 0.003,
brushColor: palette.blue,
evenGenerationColor: palette.yellow,
oddGenerationColor: palette.purple,
clarity: 1,
clarity: 2,
startColorHue: 200,
};