forked from methlabUZH/automagic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloadingScreen.m
executable file
·29 lines (28 loc) · 952 Bytes
/
loadingScreen.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function [hFig]=loadingScreen()
% get the figure and axes handles
logo = imread('playful2.jpg');
logo = imresize(logo,[490,286]);
imshow(logo);
hFig = gcf;
hAx = gca;
% set the figure to full screen
set(hFig,'units','normalized','outerposition',[0.4 0.1 0.2 0.72]);
% set the axes to full screen
set(hAx,'Unit','normalized','Position',[0 0 1 1]);
% hide the toolbar
set(hFig,'menubar','none')
% to hide the title
% title('Automagic')
title(['\fontsize{16}A {\color{magenta}U '...
'\color[rgb]{0 .5 .5}T \color{red}O} \fontsize{16}M {\color{magenta}A '...
'\color[rgb]{0 .5 .5}G \color{red}I} \fontsize{16}C']);
set(hFig,'NumberTitle','off');
message1 = 'Loading...';
t1 = text(100, 500 ,message1);
t1.FontSize = 20;
message2 = 'First time takes longer';
t2 = text(80, 520 ,message2);
t2.FontSize = 13;
CST = ConstantGlobalValues;
version = CST.VERSION;set(hFig,'Name',strcat('Automagic v.',version));
set(hFig,'Name',strcat('Automagic v.', version));