DigitalClock Animation
- StarBootics
- Addict
- Posts: 1006
- Joined: Sun Jul 07, 2013 11:35 am
- Location: Canada
DigitalClock Animation
Hello everyone,
A DigitalClock screen animation that can be use as a screen saver if you wish. The source code is too big to be posted directly, so this is the download link.
https://www.dropbox.com/s/snegzvvq4gemt ... k.zip?dl=0
https://www.dropbox.com/s/bn0p3nwgg5urs ... t.png?dl=0
Best regards
StarBootics
A DigitalClock screen animation that can be use as a screen saver if you wish. The source code is too big to be posted directly, so this is the download link.
https://www.dropbox.com/s/snegzvvq4gemt ... k.zip?dl=0
https://www.dropbox.com/s/bn0p3nwgg5urs ... t.png?dl=0
Best regards
StarBootics
Last edited by StarBootics on Fri Sep 09, 2016 6:33 pm, edited 1 time in total.
The Stone Age did not end due to a shortage of stones !
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
- StarBootics
- Addict
- Posts: 1006
- Joined: Sun Jul 07, 2013 11:35 am
- Location: Canada
Re: DigitalClock Animation
Hello everyone
I forget to change the date mask to "English" style. Just change this line :
Best regards
StarBootics
I forget to change the date mask to "English" style. Just change this line :
Code: Select all
Date::Initialize(CenterX + LED_Size, CenterY + Y_reduce + 200, 6, "%mm-%dd-%yyyy")
StarBootics
The Stone Age did not end due to a shortage of stones !
Re: DigitalClock Animation
If I wont to download the zip I need to log in and give my personal info to dropbox.
I don't wont that, as I know it will be a start of a new spam-war.
I don't wont that, as I know it will be a start of a new spam-war.
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
Re: DigitalClock Animation
You have to close the login window, then you can download the file.
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: DigitalClock Animation
Splendid !!! i have tyhe space vertigo with this clock
Works very well, except just, i don't know if it's normal but the last number is under the right points of colors
Else very nice effect, thanks for sharing

Works very well, except just, i don't know if it's normal but the last number is under the right points of colors
Else very nice effect, thanks for sharing


Not a destination
- StarBootics
- Addict
- Posts: 1006
- Joined: Sun Jul 07, 2013 11:35 am
- Location: Canada
Re: DigitalClock Animation
Can you run this code and post back the Debugger output ?Kwai chang caine wrote:Splendid !!! i have tyhe space vertigo with this clock![]()
Works very well, except just, i don't know if it's normal but the last number is under the right points of colors
Else very nice effect, thanks for sharing
Code: Select all
ExamineDesktops()
Width = DesktopWidth(0)
Height = DesktopHeight(0)
Depth = DesktopDepth(0)
Debug Width
Debug Height
Debug Depth
StarBootics
Last edited by StarBootics on Fri Sep 09, 2016 11:07 am, edited 1 time in total.
The Stone Age did not end due to a shortage of stones !
Re: DigitalClock Animation
It looks nice but unfortunately doesn't work on the OSX x64 version.
It has to do with values being types as .l instead of .i
All ...SpriteID variables need to be .i
It has to do with values being types as .l instead of .i
All ...SpriteID variables need to be .i
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
- StarBootics
- Addict
- Posts: 1006
- Joined: Sun Jul 07, 2013 11:35 am
- Location: Canada
Re: DigitalClock Animation
Corrected, the new source should work out of the box on OSX x64.wilbert wrote:It looks nice but unfortunately doesn't work on the OSX x64 version.
It has to do with values being types as .l instead of .i
All ...SpriteID variables need to be .i
I'm currently reworking the FullScreen Module to select the biggest Screen resolution supported so stay tuned.
Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
Re: DigitalClock Animation
i just get "Can't open screen !" error message from Main.pb, on both WinXP-32 and Win7-64 and OSX El Capitan 64. PB 5.42LTS
any chance of a screenshot please?!?
any chance of a screenshot please?!?
- StarBootics
- Addict
- Posts: 1006
- Joined: Sun Jul 07, 2013 11:35 am
- Location: Canada
Re: DigitalClock Animation
https://www.dropbox.com/s/bn0p3nwgg5urs ... t.png?dl=0Keya wrote:i just get "Can't open screen !" error message from Main.pb, on both WinXP-32 and Win7-64 and OSX El Capitan 64. PB 5.42LTS
any chance of a screenshot please?!?
You should have something like this.
Edit : I reuploaded the source with the reworked FullScreen Module
Best regards
Starbootics
The Stone Age did not end due to a shortage of stones !
Re: DigitalClock Animation
it works in OSX now but still the same error in WinXP and Win7
very beautiful and i love the starfield!
[edit] and WOW im amazed by how little code there is to move the starfield!! super cool (always wondered how these were done)
very beautiful and i love the starfield!

[edit] and WOW im amazed by how little code there is to move the starfield!! super cool (always wondered how these were done)
Code: Select all
If StartDrawing(ScreenOutput())
For Star3DID = 0 To #STAR3D_MAX - 1
Instance\Star3D[Star3DID]\Pz = Instance\Star3D[Star3DID]\Pz - Instance\Star3D[Star3DID]\Speed
SX = Instance\Star3D[Star3DID]\Px / Instance\Star3D[Star3DID]\Pz * 100 + Instance\ScreenW / 2
SY = Instance\Star3D[Star3DID]\Py / Instance\Star3D[Star3DID]\Pz * 100 + Instance\ScreenH / 2
If SX <= 0 Or SY <= 0 Or SX >= Instance\ScreenW Or SY >= Instance\ScreenH Or Instance\Star3D[Star3DID]\Pz < 1
RefreshStar3D(Instance\Star3D[Star3DID], Instance\SpeedMin)
Else
Couleur = Int(255 - Instance\Star3D[Star3DID]\Pz * (255/1000)) ;<- i see this is unfading the stars in, nice touch:)
Plot(SX, SY, RGB(Couleur,Couleur,Couleur))
EndIf
Next
StopDrawing()
EndIf
- StarBootics
- Addict
- Posts: 1006
- Joined: Sun Jul 07, 2013 11:35 am
- Location: Canada
Re: DigitalClock Animation
You should thanks benny for that code.Keya wrote:it works in OSX now but still the same error in WinXP and Win7
very beautiful and i love the starfield!
[edit] and WOW im amazed by how little code there is to move the starfield!! super cool (always wondered how these were done)
By the way did you try my version of Snakes of balls demo on WinXP and Win 7 ?
Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !