Author Topic: dim videos on Cools Theme  (Read 211 times)

gleegum

  • Newbie
  • *
  • Posts: 9
    • View Profile
dim videos on Cools Theme
« on: September 11, 2019, 08:59:48 AM »
I have groovyarcade with attract mode and this Cools theme that I love it. I was wondering if the'res a way to dim the video background, to lower the brightness so the logo has more protagonism. I've stripped the layout to show just the logo in the center of the screen and the background video is playing in the back, no flyers, no snaps, just that.

Is this possible?

Thanks

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 968
    • View Profile
Re: dim videos on Cools Theme
« Reply #1 on: September 11, 2019, 01:34:13 PM »
Change the alpha level for the artwork (fe.Image).

https://github.com/mickelson/attract/blob/master/Layouts.md#Image

Enkak

  • Sr. Member
  • ****
  • Posts: 116
    • View Profile
Re: dim videos on Cools Theme
« Reply #2 on: September 11, 2019, 01:37:24 PM »
Like keilmillerjr pointed, you can play with the opacity of the video background.
Open layout.nut and look for:

/////////////////////////////////////////////////////////
// On Screen Objects
// Background Image
if ( my_config["bg_image"] == "video") {
 local bg = fe.add_artwork( "snap", bgx, bgy, bgw, bgh );
}


Add there the opacity for background like this:

/////////////////////////////////////////////////////////
// On Screen Objects
// Background Image
if ( my_config["bg_image"] == "video") {
 local bg = fe.add_artwork( "snap", bgx, bgy, bgw, bgh );
 bg.alpha = 150;
}


Notice there the "bg.alpha = 150;". You can play with the values from 0 to 255.

gleegum

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: dim videos on Cools Theme
« Reply #3 on: September 11, 2019, 05:56:16 PM »
Thank for the help my friends, but I did those changes and it didn't affect the image at all!
I'm attaching the layout.nut file for the corresponding theme, maybe there's another parameter I should change that I'm not sure.

The file is located in "/usr/share/attract/layouts/Cools"

Please remember I'm using GroovyArcade.
I had to chmod 777 the file to be able to modify it.

Thanks again!

Yaron2019

  • Full Member
  • ***
  • Posts: 61
    • View Profile
Re: dim videos on Cools Theme
« Reply #4 on: September 11, 2019, 11:49:23 PM »
try  bg.set_rgb( 145, 145, 145 ) for the video

Enkak

  • Sr. Member
  • ****
  • Posts: 116
    • View Profile
Re: dim videos on Cools Theme
« Reply #5 on: September 12, 2019, 02:38:54 AM »
Thank for the help my friends, but I did those changes and it didn't affect the image at all!
I'm attaching the layout.nut file for the corresponding theme, maybe there's another parameter I should change that I'm not sure.

The file is located in "/usr/share/attract/layouts/Cools"

Please remember I'm using GroovyArcade.
I had to chmod 777 the file to be able to modify it.

Thanks again!

Not sure what is happening there or maybe I didn't understood well what you need because using your layout version the extra line "bg.alpha = 30;" for the video part is working here as it should. ??? With "30" video on background is black almost. With "130", for example, video background is more pronounced but still dim.

PS: Yaron2019 solution works good here also so hopefully that helps solve it for you. :)
« Last Edit: September 12, 2019, 02:43:26 AM by Enkak »

gleegum

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: dim videos on Cools Theme
« Reply #6 on: September 12, 2019, 07:40:23 AM »
It works now, both ways, bg.alpha and bg_rgb. Silly me, there was another layout.nut file as a hidden file in another directory, I was editing the wrong one.

Thanks guys