change purple to be nicer

This commit is contained in:
CJSatnarine
2025-02-26 23:06:59 -05:00
parent 16c5aa51b8
commit aa64290ce1

View File

@@ -9,7 +9,7 @@ using namespace std;
// Constants // Constants
const TGAColor white = TGAColor(255, 255, 255, 255); const TGAColor white = TGAColor(255, 255, 255, 255);
const TGAColor red = TGAColor(255, 0, 0, 255); const TGAColor red = TGAColor(255, 0, 0, 255);
const TGAColor purple = TGAColor(255, 0, 255, 255); const TGAColor purple = TGAColor(150, 47, 254, 255);
const int windowHeight = 800; const int windowHeight = 800;
const int windowWidth = 800; const int windowWidth = 800;
@@ -57,11 +57,11 @@ int main(int argc, char **argv) {
int y0 = (v0.y + 1.0) * windowHeight / 2.0; int y0 = (v0.y + 1.0) * windowHeight / 2.0;
int x1 = (v1.x + 1.0) * windowWidth / 2.0; int x1 = (v1.x + 1.0) * windowWidth / 2.0;
int y1 = (v1.y + 1.0) * windowHeight / 2.0; int y1 = (v1.y + 1.0) * windowHeight / 2.0;
line(x0, y0, x1, y1, image, white); line(x0, y0, x1, y1, image, purple);
} }
} }
image. flip_vertically(); // Origin at bottom left of image. image.flip_vertically(); // Origin at bottom left of image.
image.write_tga_file("output.tga"); image.write_tga_file("output.tga");
delete model; delete model;
return 0; return 0;