This is a project that I wrote.
You may have seen it before, if you've come to SKIA for Delphi webinars, because
I think I did it on the desktop first or some of the conference, one of the many
things that I do webinars for, and this is all done with a SKIA for Delphi as well.
And any Star Trek fan will be able to tell you what this is.
This is a, imitation, shall we say of a space computer the LCARS Interface.
If you're a Star Trek, original series fan, then you'll know immediately
what it is and what we've got here are some SKIA for Delphi controls.
and if I hit F 11, you can see it's a SKIA animated image.
And this one is an SVG and a there's some more animated images here.
These are Lottie, animations.
So they're basically a bit of [JSON] and, and it draws the animations.
These are just simple shapes as you can see TShape and a few other
things as well in the background.
there's some source, to make things render.
But let me just run that for a second.
So you can see what it looks like when it's running.
Oops.
Oh dear.
What did I do?
Oh, I broke it.
Oh no, it was working the other day.
No, what did I do.
Ha!
There ya go.
it, when I opened the project, it automatically added Skia in there.
So it's playing sounds in the background, which I'm just going to turn off,
cause we don't really want those on.
but as you can see, key things here are the font handling that SKIA does.
this is a Klingon custom font.
it doesn't say anything meaningful.
It's all random text and, here's some covered fonts and then
there's some nice column fonts and a justified and the rest of it.
Here's some texts.
There's your SVG.
Here's a nice custom Star Trekkie type font and the animations
And all of this is done using open-source stuff.
I didn't create any of this myself.
I just draw them all together, put in the same place, but it's a simple little demo,
but it gives you some idea of some of the things that just straight out of the box.
You can do.
You can get much better animations on these.
I just pick ones that look vaguely Star Trekkie.
but it's very cool.
And all of it's enabled by SKIA for Delphi . You can download
this from their website, and go to the repositories all open source.
And, most of the code that you see there actually is really to do with,
generating like random lines of texts.
So actually it's nothing to do with the SKIA stuff is just cause I wanted
to show some, plausible text on them.
This is a VCL sample too, right?
Yes.
There's a VCL sample.
There is someone cleverly has raised that issue against my
sample and said, do it FMX version.
the difference between the FMX and VCL samples is that in the VCL, these
animations here are not transplant.
Okay, let me just turn the sound off.
on the FMX this, planning background here would be transparent.
You probably can't see it very well on the, webinar, but, this planet image
has got a black background, which by default is transparent on FMX.
And therefore the radar sweep actually seems to go round and hover over the top
of the planet because I put the, Z-order, so that the radar sweep was on top and it
looked like the radar detected the planet.
but that's the only real difference between the FMX and the VCL
version, but yes, this is a VCL project and it's good to go.
You can use this out of the box and see some of the nonsense I did to make it
work, but, it gives you some indication of how to, load custom fonts and, lay
out colors in and, play animations.
There's nothing difficult, the animations, load the animation in
and get it to play saving the font.
Therefore handling is, fairly easy.
There's a bit of a font handling here.
It loads in a open source font, which I do reference in my notes.
I put an attribution in there from where I go.
Loads the font in, crates the font, and then chooses a yellow color.
And that's it actually custom font loaded.
So it could be any font you like.
I love the fact that you can load the font in your application.
It doesn't have to be installed on the computer.
That's a really big thing.
Correct?
Yes.
And actually in my notes, I actually put attributions where I got these
from and that fontlibrary.org has got thousands of fonts.
I didn't find just one Klingon font, I found about 50.
So if there's 50 Klingon fonts, you can bet there's all sorts of other types
of a font that you could ever want.
just go to, I GitHub and get it there, but actually it's a lot easier if
you go to the Skia4Delphi.org site and then go to the repository and
they credit me then very nicely.
I didn't do any of the hard work.
I just wrote a simple little program.
They did all the hard work.