View Single Post
Old 18th September 2009, 21:25   #13  |  Link
tin3tin
Registered User
 
tin3tin's Avatar
 
Join Date: Mar 2005
Posts: 366
A bunch of gradients done with gscript.

Uncomment the various Gradient lines to check them out:
Code:
loadplugin("GScript.dll")

function Gradient(int gwidth, int gheight, int ared, int agreen, int ablue, int bred, int bgreen, int bblue, int cred, int cgreen, int cblue)
{
blankclip(1,gwidth,1)
GScript("""
for (i=1, gheight,1){
    r=int(spline(i,0,ared,int(gheight/2),bred,gheight,cred,true)/float(gheight)*255)
    g=int(spline(i,0,agreen,int(gheight/2),bgreen,gheight,cgreen,true)/float(gheight)*255)
    b=int(spline(i,0,ablue,int(gheight/2),bblue,gheight,cblue,true)/float(gheight)*255)
    c=blankclip(1,720,1,color=r*65536 + g*256 + b)
    StackVertical(last, c)
}
""")
crop(0,1,0,0)
}
function GradientNoSpline(int gwidth, int gheight, int ared, int agreen, int ablue, int bred, int bgreen, int bblue, int cred, int cgreen, int cblue)
{
blankclip(1,gwidth,1)
GScript("""
for (i=1, gheight,1){
    r=int(spline(i,0,ared,int(gheight/2),bred,gheight,cred,false)/float(gheight)*255)
    g=int(spline(i,0,agreen,int(gheight/2),bgreen,gheight,cgreen,false)/float(gheight)*255)
    b=int(spline(i,0,ablue,int(gheight/2),bblue,gheight,cblue,false)/float(gheight)*255)
    c=blankclip(1,720,1,color=r*65536 + g*256 + b)
    StackVertical(last, c)
}
""")
crop(0,1,0,0)
}

#Gradient(720, 576,86,107,103,184,164,126,140,36,29)#Vintage America
#Gradient(720, 576,59,61,40,113,117,76,255,113,68)#Dawn
#Gradient(720, 576,160, 88, 50, 209,169, 75, 249,209,140)#fruity
#Gradient(720, 576,225,230,250,171,200,226,24,49,82)#Blue
#Gradient(720, 576,236,224,158,145,134,90,191,62,47)
#Gradient(720, 576, 62,102,51,220,240,242,150,35,9)#GreenBlueRed
#Gradient(720, 576,62,153,96,159,235,74,237,255,116)#Greenish
#Gradient(720, 576,117,0,0,215,215,215,0,100,200)#BleuBancRouge
#Gradient(720, 576,178,255,0,194,194,194,255,96,10)#GreenBlueRed
#Gradient(720, 576,118,192,245,223,236,245,245,105,198)#Baby
#Gradient(720, 576,118,192,245,255,170,85,255,0,0)#Sunset
#Gradient(720, 576, 17,0,28,94,0,30,17,9,28)#RedPurple
#Gradient(720, 576, 6,171,170,5,91,161,0,28,54)#Deep Ocean
#Gradient(720, 576,217,204,143,109,140,42,37,64,25)#Grassy Fields
#Gradient(720, 576,103,57,15,217,139,43,42,23,12)#Brown
#Gradient(720, 576,178,150,82,255,94,53,166,222,161)#OrangeGreen
#Gradient(720, 576,249,209,147,75,83,106,193,90,55)#Blue Evening
GradientNoSpline(720, 576,121,121,59,216,186,72,51,7,6)#Red jungle
__________________
DVD slideshow GUI(Freeware).

Last edited by tin3tin; 18th September 2009 at 21:31.
tin3tin is offline   Reply With Quote