added diffusion and advection
This commit is contained in:
parent
3b25635c19
commit
4eebb5821d
8 changed files with 224 additions and 39 deletions
|
@ -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++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue