Problem creating BGPic with gradients

Report any Hollywood bugs here
Post Reply
User avatar
Allanon
Posts: 732
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Problem creating BGPic with gradients

Post by Allanon »

Hi,
I've seen that I'm not able anymore to create BGPic with color gradients, I'm on Windows 10, and here is a simple code snippet:

Code: Select all

    CreateGradientBGPic(1, #LINEAR, $ff0000, $0000ff, 640, 480, 45)
    DisplayBGPic(1)
    
    /* MULTICOLOR GRADIENT
    CreateGradientBGPic(2, #LINEAR, 0, 0, 640, 480, 0, {Colors = {#RED, 0, #BLUE, 0.25, #GREEN, 0.5, #YELLOW, 0.75, #BLACK, 1}})
    DisplayBGPic(2)
    */



    WaitLeftMouse()
The first two lines produce a gradient but the angle parameter is ignored.
Also seems that only #LINEAR tag is recognized, #CONICAL & #RADIAL are ignored.
If you try to uncomment the multicolor gradient command (taken directly from the user guide), nothing is showed, what I get is only a black window.
Trying to use the multicolor gradients also produce a strange behaviour with layers because they are not shown at all, thought the program does not crash.
I've also tried to use -debugoutput but no error or warning are showed.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Problem creating BGPic with gradients

Post by airsoftsoftwair »

Right, I can confirm this issue. This got broken somewhere between 6.0 and 6.1. Will be fixed. As a workaround, I think you can just use CreateGradientBrush() and convert this brush to a BGPic then.
User avatar
Allanon
Posts: 732
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Re: Problem creating BGPic with gradients

Post by Allanon »

Ok, thank you ;)
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Problem creating BGPic with gradients

Post by airsoftsoftwair »

Code: Select all

- Fix: BGPics with rotated gradients or multiple color stops didn't work; this bug was
  introduced in Hollywood 6.1; it worked before
Post Reply