|
From: Scott <fre...@ve...> - 2005-10-29 05:05:22
|
Newbie C, help... Is there a way to write the number as 255=20 instead of 0.1 or 0.13434 etc..... sprintf(str, "R:%1.2f G:%1.2f B:%1.2f", color[0], color[1], color[2]); And also is it possible to change the text color? sprintf(str, "Red:%1.2f Green:%1.2f Blue:%1.2f", color[0], color[1], = color[2]); I would like have Red (in red), Green in Green, and Blue text.... Is this easy or possible to do in C? This function is obviosuly part of a 3D plugin, but it uses C commands, like sprintf.... Cheers, Scott. |