Skip to content

Core Types

Core type definitions used throughout PyPtP.

Identifiers

Guid

Defined in pyptp.elements.element_utils

Colors

DelphiColor

DelphiColor is a type alias for a string representing a Delphi color.

More context about Colors in Delphi Pascal can be found here https://docwiki.embarcadero.com/Libraries/en/Vcl.Graphics.TColor

BGR Format

Delphi colors use BGR format ($BBGGRR), which is the opposite of CSS RGB. For example, $0000FF is red (not blue), and $FF0000 is blue (not red).

ConstantValuePreviewDescription
CL_BLACK"$000000"Black.
CL_MAROON"$000080"Maroon.
CL_GREEN"$008000"Green.
CL_OLIVE"$008080"Olive Green.
CL_NAVY"$800000"Navy Blue.
CL_PURPLE"$800080"Purple.
CL_TEAL"$808000"Teal.
CL_GRAY"$808080"Gray.
CL_SILVER"$C0C0C0"Silver.
CL_RED"$0000FF"Red.
CL_LIME"$00FF00"Lime Green.
CL_YELLOW"$00FFFF"Yellow.
CL_BLUE"$FF0000"Blue.
CL_FUCHSIA"$FF00FF"Fuchsia.
CL_AQUA"$FFFF00"Aqua.
CL_WHITE"$FFFFFF"White.
CL_MONEY_GREEN"$C0DCC0"Mint Green.
CL_SKY_BLUE"$F0CAA6"Sky Blue.
CL_CREAM"$F0FBFF"Cream.
CL_MED_GRAY"$A4A0A0"Medium Gray.
CL_NONE"$1FFFFFFF"No color (transparent/none).
CL_DARK_BLUE"$8B0000"Dark Blue.
CL_ORANGE"$00A5FF"Orange.
CL_LIGHT_BLUE"$FFE4B5"Light Blue.
CL_DARK_GREEN"$006400"Dark Green.
CL_LIGHT_GREEN"$90EE90"Light Green.
CL_DARK_GRAY"$404040"Dark Gray.
CL_LIGHT_GRAY"$E0E0E0"Light Gray.
CL_INDIGO"$82004B"Indigo.
CL_VIOLET"$EE82EE"Violet.
CL_CORAL"$507FFF"Coral.
CL_TURQUOISE"$D0E040"Turquoise.
CL_GOLD"$00D7FF"Gold.
CL_PINK"$CBC0FF"Pink.
CL_BROWN"$2A2AA5"Brown.
CL_BEIGE"$DCF5F5"Beige.
CL_CHARCOAL"$202020"Dark charcoal for dark backgrounds.
CL_BRIGHT_GOLD"$FFD700"Bright gold for high visibility.
CL_BRIGHT_CYAN"$00FFFF"Bright cyan.
CL_BRIGHT_LIME"$00FF00"Bright lime green.
CL_HOT_PINK"$FF1493"Hot pink.
CL_TOMATO"$FF6347"Tomato red.
CL_ORCHID"$DA70D6"Orchid purple.
CL_DARK_TURQUOISE"$00CED1"Dark turquoise.
CL_STRONG_BLUE"$0000CC"Strong blue for high contrast.
CL_STRONG_RED"$CC0000"Strong red for high contrast.
CL_STRONG_ORANGE"$FF8000"Strong orange for high contrast.
CL_STRONG_PURPLE"$800080"Strong purple for high contrast.
CL_DARK_RED"$8B0000"Dark red.