function rgb24(str, color) {
  return run(
    str,
    code([
      38,
      2,
      clampAndTruncate(color.r),
      clampAndTruncate(color.g),
      clampAndTruncate(color.b),
    ], 39),
  );
}
/** Set text color using 24bit rgb. */
Set text color using 24bit rgb.
Set text color using 24bit rgb .
function rgb24(str, color) {
  return run(
    str,
    code([
      38,
      2,
      clampAndTruncate(color.r),
      clampAndTruncate(color.g),
      clampAndTruncate(color.b),
    ], 39),
  );
}
function rgb24 ( str , color ) { return run ( str , code ( [ 38 , 2 , clampAndTruncate ( color . r ) , clampAndTruncate ( color . g ) , clampAndTruncate ( color . b ) , ] , 39 ) , ) ; }
Set text color using 24bit rgb.
Set text color using 24bit rgb .