Author Topic: Simple Art Strip  (Read 6222 times)

bionictoothpick

  • Sr. Member
  • ****
  • Posts: 320
  • He who laughs lasts.
    • View Profile
Simple Art Strip
« on: April 27, 2016, 09:49:14 AM »
Is there a way to use simple Art Strip to have the alpha on all but the center wheel be faded a bit?
The code: my_strip.alpha=100; //This makes all of the wheels faded...I want the center one bolder.

Game One
Game Two
Game Three

Game Four
Game Five
« Last Edit: April 28, 2016, 07:55:48 AM by bionictoothpick »

xbs

  • Sr. Member
  • ****
  • Posts: 180
    • View Profile
Re: Simple Art Strip
« Reply #1 on: May 10, 2016, 03:39:20 AM »
You could use two lists.
One full list with alpha and one on top with only one item.

I used this trick for making a text shadow on coinops theme.

bionictoothpick

  • Sr. Member
  • ****
  • Posts: 320
  • He who laughs lasts.
    • View Profile
Re: Simple Art Strip
« Reply #2 on: May 10, 2016, 07:33:01 AM »
xbs, the two lists works well for the final display, but during the transition (the wheel movement) it doesn't look as good. Maybe if I have the second wheel show up after the dimmed version completes its movement that would work...

Do you know offhand how to have the second strip display after the transition of strip 1 is complete...if not I'll figure it out.

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Simple Art Strip
« Reply #3 on: May 16, 2016, 08:58:06 PM »
Bump this for an easy fade solution? Also, If I change the up/down controls to left and right for a horizontal wheel, this also effects navigating the config menus. Any easy way around this?

bionictoothpick

  • Sr. Member
  • ****
  • Posts: 320
  • He who laughs lasts.
    • View Profile
Re: Simple Art Strip
« Reply #4 on: May 19, 2016, 12:06:12 PM »
Until then, if someone can tell me how to convert it to the one that allows the alpha level based on the center item...


local my_strip = SimpleArtStrip( my_config["whlselect"], 5, 450,607,250,510,5);
my_strip.preserve_aspect_ratio=true;


I want the wheel to cover that area of the screen with 5 images, and the centered image highlighted and the ones further away progressively dimmer.

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: Simple Art Strip
« Reply #5 on: May 19, 2016, 03:29:20 PM »
You can make an overlay using background color with gradient - from full color to transparent.

from top:
- gradient (background color to transparent)
- wheel graphics
- background

I'm using this trick in FLAT BLUE theme to make history.dat text look like it's fading at the end - see here

If your background is not solid you can still use this trick with black gradient - it will affect the background, but it can look good, like vignetting