{"id":24782,"date":"2017-09-07T18:05:47","date_gmt":"2017-09-07T12:35:47","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=24782"},"modified":"2017-09-07T18:05:47","modified_gmt":"2017-09-07T12:35:47","slug":"getcolor-function","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/getcolor-function\/","title":{"rendered":"getcolor function"},"content":{"rendered":"<p>getcolor function returns the current drawing color.<\/p>\n<p>Declaration : int getcolor();<\/p>\n<p>e.g. a = getcolor(); \/\/ a is an integer variable<br \/>\nif current drawing color is WHITE then a will be 15.<br \/>\nSee colors in c graphics.<\/p>\n[ad type=\u201dbanner\u201d]\n<h2 id=\"c-programming-code-for-getcolor\">C programming code for getcolor<\/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%2C%20drawing_color%3B%0A%20%20%20char%20a%5B100%5D%3B%0A%20%0A%20%20%20initgraph(%26gd%2C%26gm%2C%22C%3A%5C%5CTC%5C%5CBGI%22)%3B%0A%20%0A%20%20%20drawing_color%20%3D%20getcolor()%3B%0A%20%0A%20%20%20sprintf(a%2C%22Current%20drawing%20color%20%3D%20%25d%22%2C%20drawing_color)%3B%0A%20%20%20outtextxy(%2010%2C%2010%2C%20a%20)%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>getcolor function-getcolor function returns the current drawing color.Declaration : int getcolor();<br \/>\ne.g. a = getcolor(); \/\/ a is an integer variable<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82927,1],"tags":[82940,82935,82934,82938,82937,82936,82931,82929,82944,82939,82941,82928,82933,82930,82942,82943,82932],"class_list":["post-24782","post","type-post","status-publish","format-standard","hentry","category-c-programming-2","category-coding","tag-all-colors-in-the-world","tag-android-get-color-object-from-resource","tag-android-get-color-string-from-resource","tag-color-cancer-gene-test","tag-color-dna-test","tag-colors-genetic-testing","tag-contextcompat-getcolor-context","tag-contextcompat-getcolor-example","tag-floodfill-function-in-computer-graphics","tag-get-color-from-image","tag-getcolor-activate","tag-getcolor-android","tag-getcolor-java","tag-resources-getcolor-deprecated-xamarin","tag-set-color-in-c","tag-setcolor-in-c-graphics","tag-xamarin-get-color-from-resource"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/24782","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=24782"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/24782\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=24782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=24782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=24782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}