Gradient #Linear bug with rotate

Report any Hollywood bugs here
Post Reply
sinisrus
Posts: 245
Joined: Tue Apr 21, 2015 5:43 pm

Gradient #Linear bug with rotate

Post by sinisrus » Thu Oct 11, 2018 4:41 pm

Hello,

Gradient #Linear bug with rotate

Code: Select all

Function Move()
Cls()
SetFillStyle(#FILLGRADIENT, #LINEAR, 0, 0, k, {colors={#GREEN,0.25,#RED,0.5,#BLUE,0.75,#YELLOW,1}})
BOX(#CENTER,#CENTER,300,100,#BLACK,{Rotate=k,AnchorX=0.5, AnchorY=0.5})
k=k+1
Flip()
EndFunction

SetInterval(1, Move, 1000/100)


EscapeQuit(True)

/* Boucle infinie */
Repeat
        WaitEvent
Forever

sinisrus
Posts: 245
Joined: Tue Apr 21, 2015 5:43 pm

Re: Gradient #Linear bug with rotate

Post by sinisrus » Thu Oct 11, 2018 11:38 pm

sinisrus wrote:
Thu Oct 11, 2018 4:41 pm
Hello,

SelectDisplay(1) BeginDoubleBuffer(True) Flip()

Gradient #Linear bug with rotate

Code: Select all

Function Move()
Cls()
SetFillStyle(#FILLGRADIENT, #LINEAR, 0, 0, k, {colors={#GREEN,0.25,#RED,0.5,#BLUE,0.75,#YELLOW,1}})
BOX(#CENTER,#CENTER,300,100,#BLACK,{Rotate=k,AnchorX=0.5, AnchorY=0.5})
k=k+1
Flip()
EndFunction

SetInterval(1, Move, 1000/100)


EscapeQuit(True)

/* Boucle infinie */
Repeat
        WaitEvent
Forever

sinisrus
Posts: 245
Joined: Tue Apr 21, 2015 5:43 pm

Re: Gradient #Linear bug with rotate

Post by sinisrus » Thu Oct 11, 2018 11:38 pm

sinisrus wrote:
Thu Oct 11, 2018 11:38 pm
sinisrus wrote:
Thu Oct 11, 2018 4:41 pm
Hello,

Gradient #Linear bug with rotate

Code: Select all

SelectDisplay(1)  BeginDoubleBuffer(True) Flip()

Function Move()
Cls()
SetFillStyle(#FILLGRADIENT, #LINEAR, 0, 0, k, {colors={#GREEN,0.25,#RED,0.5,#BLUE,0.75,#YELLOW,1}})
BOX(#CENTER,#CENTER,300,100,#BLACK,{Rotate=k,AnchorX=0.5, AnchorY=0.5})
k=k+1
Flip()
EndFunction

SetInterval(1, Move, 1000/100)


EscapeQuit(True)

/* Boucle infinie */
Repeat
        WaitEvent
Forever

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

Re: Gradient #Linear bug with rotate

Post by airsoftsoftwair » Sat Oct 13, 2018 12:21 am

Huh, what is this? Three bug reports or one? Where is the description? Don't just post code but describe what you expect to see and what you get.

sinisrus
Posts: 245
Joined: Tue Apr 21, 2015 5:43 pm

Re: Gradient #Linear bug with rotate

Post by sinisrus » Sun Oct 14, 2018 1:37 am

Hello,

I'm sorry I wanted to edit my post but I did not find the "edit" button.

Is only one problem with the gradient and the rotation => the gradient is stretched during the rotation
The Green, Red, Blue and Yellow colors should always be visible in BOX()

Thnak you

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

Re: Gradient #Linear bug with rotate

Post by airsoftsoftwair » Wed Oct 17, 2018 9:50 pm

Ok, I see, will be fixed.

Post Reply