Reply #1680 – 2024-08-09 20:31:50
Hi Zeremy, good to see you back! Thanks for giving me some real answers on this problem. I am using DUI. After reading your comments I'm almost sure my issue with no text is due to what you surmise about the text color in the script disappearing into my background color, as his shows in the image as being black with an off-white text.
I had thought whatever the color settings were in the script he posted would reflect what showed on my end, but if he started with using Foobar's "Dark Mode" which I am not (I use System - DUI) I guess an empty JSP3 panel would look black instead of white by default.
His script is rather hard for a novice to interpret as it is full of comment lines, variations for DUI/CUI, and what looks like pieces of script originally meant for SMP as well. If you could just give me a place to start, I'm looking for basically what he posted as the image, with a black background, white text, and blue meter bars--especially if you could point me to where the color of the bar pieces themselves may be modified, and the line #'s affecting text & background color. Once again, I'm referring to the script and the image he posted as attachments here:
https://hydrogenaud.io/index.php/topic,110516.msg1048520.html#msg1048520 .
Thank you for helping me sort this out!
Hi @Zeremy and @Air KEN,
Thank and appreciate you both for your valued, kind support.
Hi @sveakul,
I apologize for late reply. Upon reviewing the image post from [Reply #1671 – 2024-08-08 06:58:00], it seems that the background and text color in your fb2k (foobar2000) are white (technically, RGB 255,255,255). To address this, we can adjust the settings via the fb2k reference to make them different.
If the text is still not highlighting properly, we’ll need to delve deeper into the script.
If you’re still using ‘JSP1 64bit VU meter’ 1.0,
1. Navigate to line 133 to fix the VU Meter color:
var color_1 = colours.text; // or any color (RGB 250,250,250);
var color_2 = colours.highlight; // or any color (RGB 0,0,0);
In the above code snippet, color_1 and color_2 are assigned by default to the DUI/CUI text and text highlight colors.
These colors serve as gradient colors of VU Meter, with color_1 at the beginning and color_2 at the end of the gradient.
As indicated in the comments, you can assign any color to them using the RGB function (e.g., RGB[r,g,b], where r, g, and b are integers from 0 to 255). Adjusting these color settings to achieve the desired appearance of VU Meter.
2. Additionally, if we navigate to line 235, we can see that the text is written in the text’s DUI/CUI color. This explains why we cannot see this text and the beginning of the VU Meter bar:
gr.WriteText(g_text, font, colours.text, VU_x, yR+h+40, ww, wh);
replace 'colours.text' by other color, e.g black 'RGB(0,0,0)' as following and the text should be visible.
gr.WriteText(g_text, font, RGB(0,0,0), VU_x, yR+h+40, ww, wh);
I have just created another example, in which the ‘JSP3 64-bit Vu Meter’ was applied to a more relevant context.
Regards,