Search:

Type: Posts; User: meLearningC

Search: Search took 0.00 seconds.

  1. Replies
    46
    Views
    21,509

    Here is my code can you tell me what s wrong with...

    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)
    {
    ...
  2. Replies
    46
    Views
    21,509

    So would it be Magenta pixels are all: y...

    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...
  3. Replies
    46
    Views
    21,509

    Also this is what I am working with right now: ...

    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);
  4. Replies
    46
    Views
    21,509

    This is helping out a lot, but what do you mean...

    This is helping out a lot, but what do you mean by midy? Is that the slope?
  5. Replies
    46
    Views
    21,509

    So you are saying i need to find the equation of...

    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...
  6. Replies
    46
    Views
    21,509

    This is what I am trying to do in c with my...

    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.
  7. Replies
    46
    Views
    21,509

    This is what I am trying to do in c with my...

    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.
  8. Replies
    46
    Views
    21,509

    Make this image in c:

    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...
Results 1 to 8 of 8