Jump to content


Recommended Posts

So ive been working on some color routines, still in progress be here they are.




UB Color Routines


* Procedure: ColorsToRGB(Var ColorInfo: TColorInfoArray);

By: ShadowRecon.

* Procedure: RGBsToColors(Var ColorInfo: TColorInfoArray);

By: ShadowRecon.

* Procedure: ModRGBs(ModR, ModG, ModB: Integer; Var ColorInfo: TColorInfoArray);

By: ShadowRecon.

* Function: GetBMPColors(BMP, Remove: Integer; ClearSame: Boolean): TColorInfoArray;

By: ShadowRecon.

* Function: GetColorArrayInfo(C: array of Integer; var BestColors, Tolerances: TIntArray; var Speed2Mods: TExtendedArray; var rRGB: T2DIntArray; var rHSL, rXYZ: T2DExtendedArray): T3DExtendedArray;

By: Nava2, ShadowRecon.

* Function: GetBestColor(Colors: TIntegerArray; CTS: Integer; var Tol: Integer; var Speed2Modifiers: TExtendedArray): Integer;

By: Nava2, ShadowRecon.

* Function: CreateAutoColorInfo(Colors: TIntArray): TAutoColorInfo;

By: Nava2, ShadowRecon.




My goal with these was to have the ability to get colors while the script is running and be able to make a ACA generated record that you could then use with FindObjColorRecordEx which is a function i ported over for the use with ACA color records.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...