so i declared the function like that
void ImageLine(int n, int x, int y, int c1, int c2, int c3);
and defined it like that
Code: Select all
void Game::ImageLine(int n, int x, int y, int c1, int c2, int c3)
(pixels) (position) ( colors )
{
for (nline == 0; nline < n; nline ++) {
gfx.PutPixel(x + nline, y, c1, c2, c3);
}
}
so i assumed that when i called the function it would print a horizontal line wich would be "n" pixels in size but i dont get a single one so it looks like
if i want to have a specific shape i can only have a function to it if i have a PutPixel to every single one of the pixels?
or is my code just bad and as ai am a begginer maybe what im trying to show cant be understanded so if thats the case sorry '-'