Page 4 of 5

Re: Happy Birthday Fred!

Posted: Thu Feb 02, 2017 11:09 am
by DarkDragon
Shield wrote:Well, that was only 307 days too late. Still counts! :mrgreen:
:lol:
Fred wrote: :?:
:lol: I think you have to change the forum style to make the post-dates 10 times bigger. Anyway happy birthday Fred :mrgreen: .

For everyone who wants to answer now: take a look at the post dates!!

Re: Happy Birthday Fred!

Posted: Thu Feb 02, 2017 11:16 am
by #NULL
Happy Thursday :)

Re: Happy Birthday Fred!

Posted: Fri Feb 03, 2017 7:53 am
by idle
Every days your Birthday but I agree with Null happy Thursday! :lol:

Re: Happy Birthday Fred!

Posted: Fri Feb 03, 2017 8:26 am
by TI-994A
Shield wrote:Well, that was only 307 days too late. Still counts! :mrgreen:
Or just sixty days early. #PB_Round_Up. :wink:

Re: Happy Birthday Fred!

Posted: Sat Apr 01, 2017 7:21 am
by ts-soft
Happy Birthday Fred
Image

Re: Happy Birthday Fred!

Posted: Sat Apr 01, 2017 7:38 am
by Marc56us
Happy Birthday Fred! :P

And many thanks alway for your good work :wink:

Re: Happy Birthday Fred!

Posted: Sat Apr 01, 2017 8:08 am
by nco2k
happy birthday fred. :)

c ya,
nco2k

Re: Happy Birthday Fred!

Posted: Sat Apr 01, 2017 8:37 am
by djes
Yep ! Joyeux anniversaire Frédéric ! :D

Re: Happy Birthday Fred!

Posted: Sat Apr 01, 2017 11:03 am
by majikeyric
Happy birthday Fred !!!!!

Re: Happy Birthday Fred!

Posted: Sat Apr 01, 2017 12:05 pm
by falsam
Happy Birthday. An animation based on a code of pf shadoko.

Code: Select all

; pf shadoko - 2017

EnableExplicit

Procedure ColorBlend(color1.l, color2.l, blend.f=0.5)
    Protected r.w,g.w,b.w,a.w
    r=  Red(color1) + (Red(color2)     - Red(color1)) * blend
    g=Green(color1) + (Green(color2) - Green(color1)) * blend
    b= Blue(color1) + (Blue(color2) -   Blue(color1)) * blend
    a=Alpha(color1) + (Alpha(color2) - Alpha(color1)) * blend
    ProcedureReturn  RGBA(r,g,b,a)
EndProcedure
;=======================================================================================

Structure spancarte
    ok.b
    bcolor.l
    fcolor.l
    slogan.s
EndStructure

Structure smanif
    x.f
    y.f
    z.f
    v.f
    pf.f
    pancarte.spancarte
EndStructure

Global nm=255,ns=6
Global Dim manif.smanif(nm)
Global Dim slogan.s(ns)

slogan(0)=~"Bon Anniverssaire"
slogan(1)=~"Happy Birthday"
slogan(2)=~"¡Feliz cumpleaños.."
slogan(3)=~"Sretan rođendan Fred!!"
slogan(4)=~"Champagne"
slogan(5)=~"Live long and prosper."
slogan(6)=~"PureBasic for ever"

Procedure initmanif(i,z=100)
    With manif(i)
        \x=Random(400)-200
        \y=Random(20)
        \z=z
        \v=(Random(10)+50)/400
        \pf=Random(200,100)/1000
    EndWith
    With manif(i)\pancarte
        \ok=Bool(Random(32)=0)
        \bcolor=$ff<<24|Random($ffffff)
        \fcolor=$ff<<24|Random($ffffff)
        \slogan=slogan(Random(ns))
    EndWith
EndProcedure

Procedure affiche()
    Static c=1111:c+1
    Protected i,g.f,x.f,y.f,dx,dy
    StartVectorDrawing(CanvasVectorOutput(0))
    VectorFont(FontID(0),10)
    VectorSourceLinearGradient(0,0,0,600)
    VectorSourceGradientColor($ffffaaaa, 0.0)
    VectorSourceGradientColor($ffffaaaa, 0.5)
    VectorSourceGradientColor($ff888888, 1.0)
    FillVectorOutput()
    SortStructuredArray(manif(),#PB_Sort_Descending,OffsetOf(smanif\z), TypeOf(smanif\z))
    For i=0 To nm
        With manif(i)
            g=80/\z
            ResetCoordinates()
            TranslateCoordinates(400,300)
            ScaleCoordinates(g,g)
            x=\x
            y=-(\y-50+4*Abs(Sin(c*\pf)))
            If \pancarte\ok
                RotateCoordinates(x,y,5*Sin(c*\pf))
                dx= VectorTextWidth(\pancarte\slogan)+10
                dy= VectorTextHeight(\pancarte\slogan)+10
                AddPathBox(x-3,y-dy-70,  6,dy+100) 
                VectorSourceColor(ColorBlend($ff88aaaa,$ffffaaaa,\z/100))
                FillPath()
                AddPathBox(x-dx/2,y-dy-60,  dx,dy) 
                VectorSourceColor(ColorBlend(\pancarte\bcolor,$ffffaaaa,\z/100))
                FillPath()
                MovePathCursor(x-dx/2,y-dy-60+5)
                VectorSourceColor(ColorBlend(\pancarte\fcolor,$ffffaaaa,\z/100))
                DrawVectorParagraph(\pancarte\slogan,dx,dy,#PB_VectorParagraph_Center)
            EndIf
            x-20
            AddPathCircle(x,y, 20)
            VectorSourceColor(ColorBlend($ff888888,$ffffaaaa,\z/100))
            FillPath()
            \z-\v:If \z<1:initmanif(i):EndIf
        EndWith
    Next    
    StopVectorDrawing()
EndProcedure

Define i
OpenWindow(0, 0, 0, 800,600, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CanvasGadget(0,0,0,800,600)
LoadFont(0, "Comic Sans MS", 10)

For i=0 To nm
initmanif(i,Random(100,10))
Next
AddWindowTimer(0, 0, 20):BindEvent(#PB_Event_Timer, @ affiche())

Repeat:Until WaitWindowEvent()=#PB_Event_CloseWindow

Re: Happy Birthday Fred!

Posted: Sat Apr 01, 2017 12:18 pm
by ChrisR
Excellent falsam, good idea for the translation, here :)
Also in French forum: http://www.purebasic.fr/french/viewtopic.php?f=9&t=7961
All the power of PB :)

Happy Birthday Fred :)

Re: Happy Birthday Fred!

Posted: Sat Apr 01, 2017 12:28 pm
by blueb
Happy Birthday Fred!

And thank you for all you do. :)

Re: Happy Birthday Fred!

Posted: Sat Apr 01, 2017 1:29 pm
by MrMat
Wishing you a happy birthday Fred! Have a great day :D

Re: Happy Birthday Fred!

Posted: Sat Apr 01, 2017 2:23 pm
by DarkDragon
Happy Birthday!

Re: Happy Birthday Fred!

Posted: Sat Apr 01, 2017 2:58 pm
by IdeasVacuum
Another Birthday? Didn't you have one last year? :mrgreen: