{"id":24828,"date":"2017-09-08T18:21:33","date_gmt":"2017-09-08T12:51:33","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=24828"},"modified":"2017-09-08T18:21:33","modified_gmt":"2017-09-08T12:51:33","slug":"setbkcolor-function-c","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/setbkcolor-function-c\/","title":{"rendered":"Setbkcolor function in c"},"content":{"rendered":"<p>Declaration :- void setbkcolor(int color);<\/p>\n<p>setbkcolor function changes current background color e.g. setbkcolor(YELLLOW) changes the current background color to YELLOW.<\/p>\n[ad type=\u201dbanner\u201d]\nRemember that default drawing color is WHITE and background color is BLACK.<\/p>\n<h2 id=\"c-programming-code-for-setbkcolor\">C programming code for setbkcolor<\/h2>\n[pastacode lang=\u201dc\u201d manual=\u201d%23include%3Cgraphics.h%3E%0A%23include%3Cconio.h%3E%0A%20%0Amain()%0A%7B%0A%20%20%20int%20gd%20%3D%20DETECT%2C%20gm%3B%0A%20%20%20initgraph(%26gd%2C%20%26gm%2C%20%22C%3A%5C%5CTC%5C%5CBGI%22)%3B%0A%20%0A%20%20%20outtext(%22Press%20any%20key%20to%20change%20the%20background%20color%20to%20GREEN.%22)%3B%0A%20%20%20getch()%3B%0A%20%0A%20%20%20setbkcolor(GREEN)%3B%0A%20%0A%20%20%20getch()%3B%0A%20%20%20closegraph()%3B%0A%20%20%20return%200%3B%0A%7D\u201d message=\u201d\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n[ad type=\u201dbanner\u201d]\n","protected":false},"excerpt":{"rendered":"<p>Setbkcolor function in c &#8211; c programming-setbkcolor function changes current background color e.g setbkcolor changes the current background color to YELLOW. <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[83061,83056,83058,83057,83059,83054,83060,83055],"class_list":["post-24828","post","type-post","status-publish","format-standard","hentry","category-coding","tag-fill-color-in-circle-in-c-graphics","tag-how-to-change-background-color-in-c-language","tag-how-to-change-background-color-in-turbo-c","tag-how-to-set-background-color-in-c","tag-setbkcolor-mfc","tag-setbkcolor-not-working","tag-setbkcolor-transparent","tag-setcolor-function-in-computer-graphics"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/24828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/comments?post=24828"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/24828\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=24828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=24828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=24828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}