Color lookup optimisation

Questions related to using nuBuilder Forte.

Color lookup optimisation

Postby apmuthu » Mon Jan 11, 2021 4:22 pm

In stable v4 and dev 4.5, the function ColorToHex($pColor) can be replaced in nucommon.php with the function in the attachment. This makes for instant color determination instead of a long series of "if" checks.
Attachments
colours.zip
function ColorToHex() optimised replacement
(1.51 KiB) Downloaded 4 times
apmuthu
 
Posts: 114
Joined: Sun Dec 06, 2020 3:20 pm
Location: Chennai, India, Singapore

Re: Color lookup optimisation

Postby kev1n » Mon Jan 11, 2021 6:58 pm

Thanks, it's in v 4.5 now.
If you like nuBuilder, please leave a review on SourceForge

nuBuilder Code Library (85)
Installation Guides
Updating nuBuilder

Join Discord to talk about nuBuilder!
kev1n
nuBuilder Team
 
Posts: 1193
Joined: Mon Oct 15, 2018 2:13 am


Return to General