Cockos Incorporated Forums RGB / decimal in .ReaperTheme
 Register Track Bugs/Feature Requests Search Today's Posts Mark Forums Read

 05-01-2013, 05:26 PM #1 LCipher Human being with feelings     Join Date: Apr 2008 Posts: 1,940 RGB / decimal in .ReaperTheme Ok - stupid question but I can't find it. How do I convert hex or RGB to the col code in the .ReaperTheme file? ie how do I convert an RGB to the value for: docker_unselface=2500132
05-02-2013, 01:21 AM   #2
witti
Human being with feelings

Join Date: May 2012
Posts: 1,186

Quote:
 Originally Posted by LCipher Ok - stupid question but I can't find it. How do I convert hex or RGB to the col code in the .ReaperTheme file? ie how do I convert an RGB to the value for: docker_unselface=2500132
Would like to know that, too.

 05-02-2013, 01:37 AM #3 MichaJo Human being with feelings     Join Date: Oct 2008 Location: Germany Posts: 1,767 I think it's simply a conversion from RGB to HEX and vice versa. Whereas i don't understand the 7th digit... Example: RGB 37 0 19 HEX 250013 Edit: That was wrong. It's the decimal value of the HEX value. Decimal: 2500132 HEX: 262624 RGB: 38 38 36 Last edited by MichaJo; 05-02-2013 at 01:45 AM.
 05-02-2013, 02:02 AM #4 witti Human being with feelings     Join Date: May 2012 Posts: 1,186 Thank you !
 05-02-2013, 02:40 AM #5 MichaJo Human being with feelings     Join Date: Oct 2008 Location: Germany Posts: 1,767 If you don't want to use converters you can do a little math: R*256*256 + G*256 + B Example: R 38 G 38 B 36 38*256*256 + 38*256 + 36 2490368 + 9728 + 36 = 2500132
05-02-2013, 04:16 AM   #6
LCipher
Human being with feelings

Join Date: Apr 2008
Posts: 1,940

Quote:
 Originally Posted by MichaJo If you don't want to use converters you can do a little math: R*256*256 + G*256 + B Example: R 38 G 38 B 36 38*256*256 + 38*256 + 36 2490368 + 9728 + 36 = 2500132
That's what I THOUGHT it would be. I used PAINT.NET to get the HEX of the RGB and then converted to dec, but the color that showed up in the theme did not match what I selected. I selected a light gray, and the color came out a dusty pink.

Also, is there a list of what all the colors go to? Some are pretty cryptically named.... I know there is a list of image/elements on the WALTER sdk page, is there on for colors?

.

Last edited by LCipher; 05-02-2013 at 04:44 AM.

 05-02-2013, 08:34 AM #7 gpunk_w Human being with feelings   Join Date: Dec 2010 Posts: 3,223 Where exactly are you finding these 7 digit color numbers in the theme file ? set trans.status.color [255 0 0 255] That is a Reaper color definition in the rtconfig and is just RGBA If you are opening the .reapertheme file for editing i really have to ask why ? Reaper has a an editor built directly into the application for that called theme colors in prefs __________________ Reaper scripters, that is all !!!!!!!!!!!!!!!!
05-02-2013, 09:03 AM   #8
MichaJo
Human being with feelings

Join Date: Oct 2008
Location: Germany
Posts: 1,767

Quote:
 Originally Posted by LCipher ...I selected a light gray, and the color came out a dusty pink...
Strange. I never have built an own theme not to mention WALTERed anything. But having read about it when Reaper started using WALTER i was pretty sure those colors are calculated the way i've described.

Quote:
 Originally Posted by LCipher ...Also, is there a list of what all the colors go to? Some are pretty cryptically named.... I know there is a list of image/elements on the WALTER sdk page, is there on for colors? .
See above. I don't know.

05-02-2013, 11:32 AM   #9
LCipher
Human being with feelings

Join Date: Apr 2008
Posts: 1,940

Quote:
 Originally Posted by gpunk_w If you are opening the .reapertheme file for editing i really have to ask why ? Reaper has a an editor built directly into the application for that called theme colors in prefs

Im creating my own them, hence the ".reapertheme". I have used the 'prefs' and I can change the color to what I want, but that's not edit MY .reapertheme file -where does THAT color get written to?

Or are you saying to use the prefs to edit the colors?

Edit: ah, I see. I was not "Saving" the theme after editing in the prefs. So it's wasn't saving the value in my .reapertheme file. I'll use that - thanks.

.

Last edited by LCipher; 05-02-2013 at 12:14 PM.

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home General Discussion     General Discussion (aka spam trap) REAPER Forums     REAPER General Discussion Forum     newbieland     REAPER Q&A, Tips, Tricks and Howto     Recording Technologies and Techniques     REAPER Compatibility     REAPER Color Themes and Icon Sets     MIDI Hardware, Control Surfaces, and OSC     REAPER Non-English Speaking User Forums         Forum de REAPER en français         Foro de REAPER en Español         Fórum do REAPER em português         Forum di REAPER in italiano         Deutschsprachiges REAPER Userforum         Pyccкоязычный фopyм REAPER     REAPER Bug Reports     REAPER Feature Requests     Dstruct's Casa De Nitpicks     REAPER for Live Use     REAPER for Video Editing/Mangling     REAPER for Ambisonic and 3D positional audio uses     ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum     REAPER for macOS X     REAPER for Linux     REAPER Pre-Release Discussion     REAPER Music/Collaboration Discussion     REAPER lounge NINJAM Discussion     NINJAM User Discussion     NINJAM Developer Discussion Other Software Discussion     WDL users forum     LICEcap Discussion     OSCII-bot forum     Old Cockos Products Forum

All times are GMT -7. The time now is 01:33 PM.

 -- Cockos ---- REAPER 5 ---- Reaper 3 ---- Reaper 2 ---- Reaper 1 Contact Us - Çockos Incorporated - Archive - Top