Search code examples
consolepascallazarus

How to use RGB text colours in lazarus console


I'm using lazarus console, and im aware you have a set of basic colours that can be accessed through use of textcolor() but I want to know if there is a way to instead use RGB colours? I haven't been able to find a method for console online. Thanks.


Solution

  • $RGBA = textcolor("#RRGGBBAA"); 
    
    $RGB = textcolor("#RRGGBB");