LT color function supports converting Red color in high byte


Version: 2023b

Type: Features

Category: Programming

Subcategory: LabTalk

Jira: ORG-26826


It’s more common to convert Red color in high byte.

Syntax: color(r, g, b, 2)

Note: Original color(r, g, b, 1) convert Red color in low byte.

color(157,29,29,2) = 10296605 = #9D1D1D
color(157,29,29,1) = 1908125 = #1D1D9D