Old 08-21-2019, 01:22 AM   #1
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default gfx font color ??

In the included lyrics.lua I'm just trying to change the font color from white to yellow where the chords occurs in the lyrics (Dmin)
the gui color was changes at the top from it's default white with black text.
_bg,_mg,_fg={0,0,0},{0.675,0.675,5},{1,1,1}

something like
color="white"
if lyric == "(" then color = "yellow"
if lyric == ")" then color = "white"
or string match anything between (xxx)

lyrics multi.lua

__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote
Old 08-21-2019, 09:37 AM   #2
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Text uses the same color as drawing, set with gfx.set(r, g, b, a) where each value is from 0-1. Reaper doesn't have any constants for "red", etc.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 08-21-2019, 11:29 PM   #3
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default

Thanks ! that worked good, I could only get it change color on sync but that will have to do for now.

__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 Jump


All times are GMT -7. The time now is 12:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.