Adjust Color

This commit is contained in:
2024-06-11 08:43:54 +02:00
parent 6917e2b632
commit 3990d67408
+2 -5
View File
@@ -41,14 +41,11 @@ void DrawWavesFromSlits(int screenWidth, int screenHeight, AppState* state) {
int ySpalt1 = (screenHeight - state->gitterD) / 2; int ySpalt1 = (screenHeight - state->gitterD) / 2;
int ySpalt2 = (screenHeight + state->gitterD) / 2; int ySpalt2 = (screenHeight + state->gitterD) / 2;
// Calculate the field size similarly to the Java code
int sizeFeld = sqrt((screenWidth - xSpalt) * (screenWidth - xSpalt) + screenHeight * screenHeight); int sizeFeld = sqrt((screenWidth - xSpalt) * (screenWidth - xSpalt) + screenHeight * screenHeight);
// Draw waves for the first slit DrawKugelwelle(xSpalt, ySpalt1, sizeFeld, screenHeight, state, BLACK);
DrawKugelwelle(xSpalt, ySpalt1, sizeFeld, screenHeight, state, BLUE);
// Draw waves for the second slit DrawKugelwelle(xSpalt, ySpalt2, sizeFeld, screenHeight, state, BLACK);
DrawKugelwelle(xSpalt, ySpalt2, sizeFeld, screenHeight, state, GREEN);
} }