title: Adding user-defined color in function putpixel(int x,int y,int color)
body: <p>I am trying to add orange color to my graphics code program. I am using putpixel(int x, int y, int color) function to add color. This function is not allowing to me to do so. Here's my code , Please help me to solve this problem</p>
  
  <pre class="lang-cpp prettyprint-override"><code> #include&lt;iostream&gt;
   #include&lt;graphics.h&gt;
   int main()
          {
          int gd=DETECT,gm;
          initgraph(&amp;gd,&amp;gm,NULL);
          int height,width;
          height=10;
          width=75;
          while(height!=43)
              {
              putpixel(width,height,12); //here i want to add orange color
              width++;
              if(width==225)
                  {
                  width=76;
                  height++;
                  }
              }
          getch();
          closegraph();
          } 
  </code></pre>
  
  <p>I am trying to build an Indian flag. I am using GNU lib libgraph 1.0.2</p>