📄 colorman.h
字号:
#pragma ColorManager
/* The ColorManger is used in conjunction with the module Graphics. Use
there routines in lieu of Graphics.OpenColor, SetColor, and GetColor.
The manager keeps a table of all colors requested from it and will use
this table to distribute new requests of the same hues. If the exact
color cannot be found in the table and no more color may be allocated
the manager will find the closest color in the table to the one requested
and return that tag. The tags returned by the manager are completely
compatible with the color tags used in Graphics. */
unsigned int AllocColor (long color);
/* Find color in table and return tag to it. */
void DeallocColor (unsigned int &tag);
/* Tell manager that the tag is no longer being used. */
unsigned int ColorName (char name[]);
/* Returns the tag of a named color.
Names recognized are:
aquamarine medium goldenrod orange
medium aquamarine green orchid
black dark green dark orchid
blue dark olive green medium orchid
cadet blue forest green pink
cornflower blue lime green plum
dark slate blue medium forest green red
light blue medium sea green indian red
light steel blue medium spring green medium violet red
medium blue pale green orange red
medium slate blue sea green violet red
midnight blue spring green salmon
navy blue yellow green sienna
navy dark slate grey tan
sky blue dark slate gray thistle
slate blue dim grey turquoise
steel blue dim gray dark turquoise
coral light grey medium turquoise
cyan light gray violet
firebrick gray blue violet
brown grey wheat
sandy brown khaki white
gold magenta yellow
goldenrod maroon green yellow
*/
unsigned int Gray (unsigned int n);
/* Returns a gray scale color. n ranges from 0 to 100. 0 is black,
100 is white. NOTE: Successive entries may be the same depending
on the display. Divide 100 by distinct items to get intervals. */
void NameOfColor (unsigned int tag, char &name[]);
/* Returns the name of the color that best matches the color of the passed
tag. */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -