12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Descriptions of the Library Routines 2color(Input) INTEGER(4). RGB color value to set the current graphics color to. Range and resultdepend on the system’s display adapter.Results:The result type is INTEGER(4). The result is the previous RGB color value.In each RGB color value, each of the three colors, red, green, and blue, is represented by aneight-bit value (2 hex digits). In the value you specify with SETCOLORRGB, red is the rightmostbyte, followed by green and blue. The RGB value’s internal structure is as follows:BitRGB31 (MSB) 24 23 16 15 8 7 0O O O O O O O O B B B B B B B B G G G G G G G G R R R R R R R RLarger numbers correspond to stronger color intensity with binary 1111111 (hex Z'FF') themaximum for each of the three components. For example, Z'0000FF' yields full-intensity red,Z'00FF00' full-intensity green, Z'FF0000' full-intensity blue, and Z'FFFFFF' full-intensity for allthree, resulting in bright white.SETCOLORRGB sets the RGB color value of graphics over the background color, used by thefollowing graphics functions: ARC, ELLIPSE, FLOODFILL, LINETO, OUTGTEXT, PIE,POLYGON, RECTANGLE, and SETPIXEL. SETBKCOLORRGB sets the RGB color value ofthe current background for both text and graphics. SETTEXTCOLORRGB sets the RGB colorvalue of text over the background color (used by text functions such as OUTTEXT, WRITE, andPRINT).SETCOLORRGB (and the other RGB color selection functions SETBKCOLORRGB, andSETTEXTCOLORRGB) sets the color to a value chosen from the entire available range. Thenon-RGB color functions (SETCOLOR, SETBKCOLOR, and SETTEXTCOLOR) use colorindexes rather than true color values. If you use color indexes, you are restricted to the colorsavailable in the palette, at most 256. Some display adapters (SVGA and true color) are capable ofcreating 262,144 (256K) colors or more. To access any available color, you need to specify anexplicit RGB value with an RGB color function, rather than a palette index with a non-RGB colorfunction.CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIBSee Also: “SETBKCOLORRGB”, “SETTEXTCOLORRGB”, “FLOODFILLRGB,FLOODFILLRGB_W”, “SETCOLOR”, “REMAPPALETTERGB”, “SETPIXELRGB,SETPIXELRGB_W”, “SETPIXELSRGB”2-393

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!