Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calculating Color Values

Featured Replies

Hello,

In a previous post I had requested a way to convert tagged text to color and or be stylized. I had a reply with the following calc:

Let ( [

formula = Substitute ( "" & Quote ( text ) & "" ;

[ "<RD>" ; Quote ( " & TextColor ( " ) ] ;

[ "</RD>" ; Quote ( " ; 16646400 ) & " ) ] ;

[ "<B>" ; Quote ( " & TextStyleAdd ( " ) ] ;

[ "</B>" ; Quote ( " ; bold ) & " ) ] ;

[ "<I>" ; Quote ( " & TextStyleAdd ( " ) ] ;

[ "</I>" ; Quote ( " ; italic ) & " ) ] )

] ;

Evaluate ( formula )

)

I thought Text Color was always RGB but the above values aren't RGB. What color space is it and how do you calculate the color values? I tried substituting RGB values, but then the calc wouldn't work.

Thanks,

John

I thought Text Color was always RGB

No, actually the second parameter of the TextColor() function is an indexed color. The help for the RGB() function explains how this number is calculated from discrete R; G; B values, basically =

256^2 * R + 256 * G + B

  • Author

Thanks for the response. I couldn't figure out how you came up with the values.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.