Problem creating BGPic with gradients

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

Problem creating BGPic with gradients

Post by Allanon » Fri Dec 23, 2016 6:28 pm

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.
----------------------------
[Allanon] Fabio Falcucci
AMC - Creative Development // Docs Site // Support Forum
Support me on Patreon for Hollywood libraries!

User avatar
airsoftsoftwair
Posts: 3355
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Problem creating BGPic with gradients

Post by airsoftsoftwair » Tue Dec 27, 2016 11:30 pm

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: 464
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Re: Problem creating BGPic with gradients

Post by Allanon » Wed Dec 28, 2016 5:24 pm

Ok, thank you ;)
----------------------------
[Allanon] Fabio Falcucci
AMC - Creative Development // Docs Site // Support Forum
Support me on Patreon for Hollywood libraries!

User avatar
airsoftsoftwair
Posts: 3355
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Problem creating BGPic with gradients

Post by airsoftsoftwair » Fri Dec 30, 2016 4:39 pm

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