added diffusion and advection

This commit is contained in:
Lauchmelder 2021-12-10 02:52:16 +01:00
parent 3b25635c19
commit 4eebb5821d
8 changed files with 224 additions and 39 deletions

View file

@ -45,7 +45,7 @@ void VectorField::Draw(SDL_Renderer* renderer, const SDL_Rect& targetRect)
vectorCenterSquare.w = cellWidth / 5.0;
vectorCenterSquare.h = cellHeight / 5.0;
SDL_SetRenderDrawColor(renderer, 200, 20, 20, 255);
SDL_SetRenderDrawColor(renderer, 200, 20, 20, 60);
for (int y = 0; y < height; y++)
{
for (int x = 0; x < width; x++)