Here is my code can you tell me what s wrong with it please?
#include <stdio.h>
//This function makes the header file for the image
void make_header(int width, int height)
{
...
Type: Posts; User: meLearningC
Here is my code can you tell me what s wrong with it please?
#include <stdio.h>
//This function makes the header file for the image
void make_header(int width, int height)
{
...
So would it be
Magenta pixels are all:
y value > midy
y value > slope of lineLR
y value > slope of lineRL
Cyan pixels are all:
y value > midy
y value < slope of lineLR
y value < slope of...
Also this is what I am working with right now:
void print_Row (int yValue, int width, int height)
{
int rise_LR=1;
int run_LR=1;
int line_LR=(rise_LR/run_LR);
This is helping out a lot, but what do you mean by midy? Is that the slope?
So you are saying i need to find the equation of the line?
Would this work?:
y1=mx+b; //lineLR
y2=mx+b; //LineRL
if (y1>mx+b)
//print the color red
else (y1<mx+b)
//print the color blue
if...
This is what I am trying to do in c with my program. The colors don't matter, I just need to get the math right.
This is what I am trying to do in c with my program. The colors don't matter, I just need to get the math right.
Make this image in c:
12076
You will write the following functions:
1. make_header(int w, int h) ; the same as the header we used in class
2. print_Row (int yValue, int width, int height); the...