SDL Component Suite - SDLColors
The unit SDLColors contains a collection of basic declarations, procedures and functions for manipulating colors. Amongst these routines are conversion functions for HSI (hue, saturation, intensity) and RGB (red, green, blue) color systems. Further, the unit SDLColors contains the class TColorArray which supports the handling of color arrays.

More details can be found in the online help pages.

Free Sample Program

SDLColors Uses the unit SDLCOLORS to convert HSI (hue, saturation, intensity) values to RGB (red, green, blue). The user may set the HSI values to compose a color. The selected color is displayed as an HTML value, too. colorcalc.zip
(227 kB)


What's new:

  • Release 12.0   [Dec-12, 2023]
     
    • the function ContrastBWColor returns the highest contrast black/white color
    • the function ObtainColorName provides now an overloaded version which returns both the hex code and the color name
    • the new function AdjustColorIntSat allows you to adjust the intensity and saturation of a color
    • bug fix: TColorArray.FillbyInterpolation crashed if the color palette was shorter than two entries

  • Release 10.7   [Aug-24, 2020]
     
  • Release 10.6   [Mar-09, 2018]
     
    • the constant array AllSDLColors contains all colors declared in the SDL Component Suite
    • the constant array AllSDLColorNames contains the names of all colors declared in the SDL Component Suite
    • the function ObtainColorName returns the name of a color

  • Release 10.5   [Oct-10, 2016]
     
    • no changes

  • Release 10.4   [Jun-02, 2015]
     
  • Release 10.3   [Oct-06, 2014]
     
    • predefined color arrays extended by a high contrast geographic color array and a color array designed to support people suffering from color perception deficiencies
    • the new function ColorToGray converts colors to gray values
    • a few additional colors declared (clCrimson, clRebeccaPurple, clMagenta)
    • the list of X11 colors has been combined into the array X11Colors
    • the new methods TColorArray.ReadFromOpenTextFile and WriteToOpenTextFile allow to read and write an already open color file

  • Release 10.2   [May-30, 2013]
     
    • no changes

  • Release 10.1   [Oct-29, 2012]
     
  • Release 10.0   [Oct-4, 2011]
     
  • Release 9.7   [May-31, 2010]
     
    • no changes

  • Release 9.51   [Dec-01, 2008]
     
    • no changes

  • Release 9.5   [Oct-31, 2008]
     
  • Release 9.0   [May-28, 2007]
     
    • no changes

  • Release 8.5   [Feb-18, 2006]
     
  • Release 8.2   [Nov-03, 2004]
     
  • Release 8.1   [Aug-29, 2004]
     
    • available for Delphi™ 8 for .NET

  • Release 8.0   [Apr-01, 2004]
     
    • SDLColors is now available to the public