- •1.Introduction
- •2. Basic part
- •I / o redirection
- •3. Conclusion
- •4. The list of the used literature
- •Module Graph
- •Graphic primitives
- •Example
- •Example
- •Pen styles
- •Example
- •Current graphics brush Brush
- •The brush styles
- •Example
- •Routines for working with font
- •Example
- •Routines for working with graphic window
- •Example
- •Example.
- •Events module GraphAbc
- •Example
- •Example ;
- •I / o redirection
- •Conclusion
- •The list of the used literature
Example
// The graph. Line. The size of the window. Window title
uses GraphABC;
begin
Window.Title := '';
Line(0,0,Window.Width-1,Window.Height-1);
Line(0,Window.Height-1,Window.Width-1,0);
end.
Functions for working with color
Type the color is synonymous with the System.Drawing.Color.
function RGB(r,g,b: byte): Color;
Returns the color that contains the red (r), green (g) and blue (b) components (r,g, and b - in the range from 0 to 255)
function ARGB(a,r,g,b: byte): Color;
Returns the color that contains the red (r), green (g) and blue (b) components and transparency (a) (a,r,g,b - in the range from 0 to 255)
function RedColor(r: byte): Color;
Returns the red color, and intensity of r (r - in the range from 0 to 255)
function GreenColor(g: byte): Color;
Returns the green with the intensity of g (g - in the range from 0 to 255)
function BlueColor(b: byte): Color;
Returns the blue color intensity b (b - in the range from 0 to 255)
function clRandom: Color;
Returns a random color
function GetRed(c: Color): integer;
Returns the red component of the color
function GetGreen(c: Color): integer;
Returns the green component of the color
function GetBlue(c: Color): integer;
Returns the blue component of the color
function GetAlpha(c: Color): integer;
Returns the component the color transparency
Color constants
clAquamarine |
clAzure |
clBeige |
clBisque |
clBlack |
clBlanchedAlmond |
clBlue |
clBlueViolet |
clBrown |
clBurlyWood |
clCadetBlue |
clChartreuse |
clChocolate |
clCoral |
clCornflowerBlue |
clCornsilk |
clCrimson |
clCyan |
clDarkBlue |
clDarkCyan |
clDarkGoldenrod |
clDarkGray |
clDarkGreen |
clDarkKhaki |
clDarkMagenta |
clDarkOliveGreen |
clDarkOrange |
clDarkOrchid |
clDarkRed |
clDarkTurquoise |
clDarkSeaGreen |
clDarkSlateBlue |
clDarkSlateGray |
clDarkViolet |
clDeepPink |
clDarkSalmon |
clDeepSkyBlue |
clDimGray |
clDodgerBlue |
clFirebrick |
clFloralWhite |
clForestGreen |
clFuchsia |
clGainsboro |
clGhostWhite |
clGold |
clGoldenrod |
clGray |
clGreen |
clGreenYellow |
clHoneydew |
clHotPink |
clIndianRed |
clIndigo |
clIvory |
clKhaki |
clLavender |
clLavenderBlush |
clLawnGreen |
clLemonChiffon |
clLightBlue |
clLightCoral |
clLightCyan |
clLightGray |
clLightGreen |
clLightGoldenrodYellow |
clLightPink |
clLightSalmon |
clLightSeaGreen |
clLightSkyBlue |
clLightSlateGray |
clLightSteelBlue |
clLightYellow |
clLime |
clLimeGreen |
clLinen |
clMagenta |
clMaroon |
clMediumBlue |
clMediumOrchid |
clMediumAquamarine |
clMediumPurple |
clMediumSeaGreen |
clMediumSlateBlue |
clMoneyGreen |
clPlum |
clMistyRose |
clNavy |
clMidnightBlue |
clMintCream |
clMediumSpringGreen |
clMoccasin |
clNavajoWhite |
clMediumTurquoise |
clOldLace |
clOlive |
clOliveDrab |
clOrange |
clOrangeRed |
clOrchid |
clPaleGoldenrod |
clPaleGreen |
clPaleTurquoise |
clPaleVioletRed |
clPapayaWhip |
clPeachPuff |
clPeru |
clPink |
clMediumVioletRed |
clPowderBlue |
clPurple |
clRed |
clRosyBrown |
clRoyalBlue |
clSaddleBrown |
clSalmon |
clSandyBrown |
clSeaGreen |
clSeaShell |
clSienna |
clSilver |
clSkyBlue |
clSlateBlue |
clSlateGray |
clSnow |
clSpringGreen |
clSteelBlue |
clTan |
clTeal |
clThistle |
clTomato |
clTransparent |
clTurquoise |
clViolet |
clWheat |
clWhite |
clWhiteSmoke |
clYellow |
clYellowGreen |
|
|
