DIY ASCII animation splash screen!

I don't startx automatically, but I like flashing colours and ASCII art. Hence, I decided to make some ascii animations to spruce up my tty at logon.
Obligatory video link (watch in HD, the frames flash by too fast to look good at 360p)
Here's how I did it, there are probably better ways, but I'm here to learn as well.  Please share with me your ineffable wisdom with me.  Limitations: requires a directory full of .jpegs, only works from sysinit_end to shutdown_start unless you hard-code the art into the function file a la 2.b (due to parsing of the jpeg files in a mounted dir).
0. Install jp2a from the AUR.
1. Use ffmpeg to extract .jpeg frames from a small portion of the video
ffmpeg -i foo.avi -t 40 -ss 00:00:00.00 foo-%d.jpeg
Where -t is the duration to be extracted in seconds, and -ss is the point at which to start recording (hh:mm:ss.ms).  Doesn't have to be .avi!
2a. the easy way
For startup / shutdown splashes, create a file in functions.d:  /etc/rc.d/functions.d/animation
Modify this here to include your directory with the pictures and the maximum number of lines your tty can display without distorting the output.
add_hook sysinit_end evasplash1
add_hook shutdown_start evasplash2
evasplash1() {
for f in /home/eqyiel/scripts/evasplash1/*.jpeg
do
jp2a --colors --height=55 $f
echo -ne '\033[55F'
sleep 0.01
done
echo -ne '\033[55E'
evasplash2() {
for f in /home/eqyiel/scripts/evasplash2/*.jpeg
do
jp2a --colors --height=55 $f
echo -ne '\033[55F'
sleep 0.0001
done
echo -ne '\033[55E'
Pay special attention to --height and the two escape codes, \033[55F and \033[55E.
--height is the maximum height in lines of your tty
'\033[55F' means "position the cursor 55 lines above where it is right now or at the top of the screen if there are <55 lines to the top"
'\033[55E' means "position the cursor 55 lines below where it is right now or at the bottom of the screen if there are <55 lines to the bottom"
The escape codes must be expressed in literals and echo needs the -e switch to enable interpretation of backslash escapes.
You may want to test this out in a shell script before rebooting your computer, a la:
#!/bin/bash
while [ 1 ]
do
for f in /home/eqyiel/scripts/evasplash1/*.jpeg
do jp2a --colors --height=55 $f
echo -ne '\033[55F'
sleep 0.01
done
echo -ne '\033[55E'
done
For a login splash, just add the code to the end of your /etc/profile:
for f in /home/eqyiel/scripts/dbsplash/*.jpeg
do jp2a --colors --height=55 $f
echo -ne '\033[55F'
sleep 0.0001
done
echo -ne '\033[55E'
2b. the hard way (for the truly masochistic)
Use jp2a to extract raw ANSI data from the .jpeg frames you have created:
for f in *.jpeg; do jp2a -v --colors --height=55 $f > $f.txt; done
This will create a whole bunch of files full of ANSI escape sequences.  Now, open up your preferred editor and import the files one by one, stitching them together in this fashion:
#!/bin/bash
while [ 1 ]
do
sleep=.1
echo -ne '╔═══╗
║* ║
║ ║
║ ║
╚═══╝
sleep $sleep
echo -ne '\033[5F╔═══╗
║ * ║
║ ║
║ ║
╚═══╝
sleep $sleep
echo -ne '\033[5F╔═══╗
║ *║
║ ║
║ ║
╚═══╝
sleep $sleep
echo -ne '\033[5F╔═══╗
║ ║
║* ║
║ ║
╚═══╝
sleep $sleep
echo -ne '\033[5F╔═══╗
║ ║
║ * ║
║ ║
╚═══╝
sleep $sleep
echo -ne '\033[5F╔═══╗
║ ║
║ *║
║ ║
╚═══╝
sleep $sleep
echo -ne '\033[5F╔═══╗
║ ║
║ ║
║* ║
╚═══╝
sleep $sleep
echo -ne '\033[5F╔═══╗
║ ║
║ ║
║ * ║
╚═══╝
sleep $sleep
echo -ne '\033[5F╔═══╗
║ ║
║ ║
║ *║
╚═══╝
echo -ne '\033[5F'
sleep=.1
done
You'll need to transpose it to the notation in functions.d, with the functions() {listed like this}. I'm thinking there's an easier way to do this with the directory full of .txt files, like a clever `cat`, please tell me how if you know.
Note:
The "archlinux" /etc/issue prompt was made by Ali Gündüz or "gnufs" as he is known on this board.
I played no part in the creation of Dragon Ball or Evangelion, I only extracted a few frames from each to test this idea.
See:
http://aligunduz.org/
https://bbs.archlinux.org/search.php?ac … r_id=26003
Inspired by:
https://bbs.archlinux.org/viewtopic.php?id=50845
http://www.youtube.com/watch?v=cfuVLYysY2Q
http://www.youtube.com/watch?v=3shEw8UWETA

Wow, that looks really cool, even if it needs a bit work. Now I just need a nice video to play

Similar Messages

  • Edge Animate correct software for Animated Splash Screen iOS app???

    Hi eveyone, I am fairly new to the mobile designing and come from a print background, 99% of my posts are on the InDesign forums.
    I was wondering if you could please direct me to the best way to create an Animated Splash Screen for iOS?
    Would Adobe Edge Animate be the right tool?
    Or is there a different way to do it?
    I thought it would be coded by the app developers but I can't really find enough info and I'm a bit out of my depth to understand all the websites I've read.

    Yes, it would be pretty simple with phonegap.
    http://www.lynda.com/Edge-Animate-tutorials/Creating-PhoneGap-Build-app-Edge-Animate/12430 7/127570-4.html

  • Java 1.5 Update 6 Splash Screen

    I have a client who operates in a dark space and does not want bright white backgrounds or white splash screens. It is easy enough to use BGCOLOR="black" in the body tag of the applet containers. However, the Sun animated splash screen logo is my last challenge. I don't want to get rid of it so much as I want to color it a dark shade of grey or black. Anyone know if it is possible to darken the color of the background on the "Java Loading" splash screen ?

    You may have video problems. Check for the most current video driver version (from the video card provider, not the computer supplier.)

  • Splash screen duration?

    Is it my imagination or does the animated splash screen for
    Flash Lite Player 2.1 (Symbian) persist far longer than it took
    older players to startup? I hope we are not being made to wait
    longer for marketing purposes. If it takes longer to load because
    of lots of cool new functionality, never mind ...

    > As a developer I am very happy with the latest edition
    of the player. It
    > offers
    > so many opportunities (like video!) and performs great.
    However, the user
    > experience would improve if the duration of the
    Adobe-branded animation
    > was
    > reduced. The splash should last no longer than it takes
    a typical user to
    > comfortably read the logo. The author's Flash movie
    should appear as soon
    > as
    > possible.
    >
    Yes we all want OUR content to show as soon as possible, but
    so long as they
    are making the technology that we are using, we have to live
    by Adobe's
    rules. Maybe they will listen to our request that they
    shorten that splash.
    I sure hope so. After all, there's no forced splash at all on
    the desktop
    versions ...
    Steve
    EuroTAAC eLearning 2007
    http://www.eurotaac.com
    Adobe Community Expert: Authorware, Flash Mobile and Devices
    My blog -
    http://stevehoward.blogspot.com/
    Authorware tips -
    http://www.tomorrows-key.com

  • Animation after Splash Screen?

    When an application starts, I supply a Default.png which is displayed immediately, configure the main view in awakeFromNib, and my view with its subviews then suddenly appears replacing the default "splash" screen.
    My questions is, how can I animate the initial appearance of my main view, so that it scales or dissolves or rotates onto the screen when the application is finally ready to run?
    I tried the animation in applicationDidLoad (if there was an animation I only saw the final result and not the animation) so I guess I don't know the application method that signals everything is done and can trigger the animation seen by the user.

    In the primary views vieDidLoad method, you can scale it to another size or so when you add to the window and then scale it back to normal size in an animation loop.

  • Z87-G45 BIOS Splash screen stays during windows startup animation

    Hello all,
    this is my first post on these forums and I haven't found any similar problems like mine so here it is:
    when I power on the PC the normal BIOS splash screen comes up,
    then it disappears and normally the windows (I'm running  windows 8 Pro x64) startup animation should come up,
    but with me the BIOS splash screen just returns and the windows startup circle just comes ontop of it,
    like the normal startup animation but instead of a black background I have the BIOS splash screenas background and the windows logo itself also doesn't show,
    just the loading circle...
    My PC starts up pretty fast so its not that big of a deal but I just wondered if there was a fix
    BTW I'm running on a MSI Z87-G45 Gaming with the latest BIOS version (1.3) and windows boots of an SSD

    seems to be the normal way of booting. I've also just installed Win8 Pro in UEFI-Mode (not Legacy-UEFI!), and what I've heard from a friend that uses an ASUS board, is that this behavior indicates you are indeed booting in UEFI-Mode -> so no worries!

  • BLACK SCREEN on start up with 3 beeps, FREEZES when power unplugged, IF IT BOOTS splash screen freezes, OVERHEATING REQUIRED TO BOOT - 0x7B, Event 41 kernel-power

    Issue: One day I unplug the power, the screen freezes and I get frozen music sound. I shut down, start up, I get 3 beeps (1 short 2 long), which indicates a Video failure according to the Thinkpad Laptop beep code list.
    How I solve the issue day-to-day: I turn the heat up - I disconnect the battery and hard drive and plug in the power then turn it on. I will wait until the underneath is searing hot with a blanket blocking the fan's flow of air, I mean way hot because any
    cooler and it won't start. Plug stuff back in, Hard drive first, Battery second, turn off with power button hold, unplug power, replug power. 
    I turn it on, no beeps, it goes past the first Lenovo screen, then gives me a prompt because it "didn't shut down properly" and continue regular startup. What happens next is the Windows logo appears,
    and just as the animated windows logo starts to move (you see 2 small colored dots on the screen), it freezes. I see this every time, I know naturally that it means that the laptop is still too hot to go past that point, so I shut it down and try again. After
    about 5 - 10 tries it will go past the splash screen and into the login area, then it's all fine. 
    Sometimes when I unplug the power from the back by accident it will freeze. By accident I mean that the connector wiggles it's self out easily. This unplug freezing thing started happening about 1 week before the 3 beep black screen problem started rolling,
    so I'm putting 2 together.
           Errors:
    I got a Blue Screen of Death the first time I started it up with the overheating ritual, but I never got it since. It was 0X7B.
    I got another Blue Screen of Death about a week ago, but came as it was on already and I had been using it, and said something about disabling Cache or Shadowing in BIOS. I never got it since.
           Event Viewer events found:
    1. Kernel-Power, Summary page.
    There are critical events for a few things like Kernel-Power, Event ID 41, Task Category (63). There are 19 of them, each day 1 or 2 of them but mostly 1, so this maybe corresponds to my daily ritual.
    "The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly."
    2. Kernel-Processor-Power - Event ID 37, task category (7)
    "The speed of processor 1 in group 0 is being limited by system firmware. The processor has been in this reduced performance state for 71 seconds since the last report."
    3. LMS - HCMI - Event ID 2, Task Category: none
    "LMS Service cannot connect to HECI driver".
    I came across a very sluggish performing control panel for Nvidia before and after this problem, and I tried installing a newer version, which I had to jump through a few hoops to do, like uninstalling first, not just updating. At first it said that the
    driver wasnt for the system, which was wrong. I made it work somehow, but it was still sluggish. I rolled it back to an earlier driver, and now it works fine. No sluggish performance / slight freeze window thing going on.
                 MSCONFIG.exe, Boot Advanced Options: I have tried twice to change this 1 setting, check box "Number of processors" and change to 2 processors, because I do have 2 processors. I have been able to change
    this in the past, but it does not save the setting now, and I believe this option was selected before I started having problems, and settings did not disappear then.
    What could this be. The small round BIOS battery? The video card like everyone presumes? (I.E. the entire motherboard replacement), Software? The wiggly power input area? (Not enough power getting in?), Firmware of some sort? The BIOS software being wrong?
    SYSTEM INFO:
    Thinkpad T61p 6457-A24, Intel core 2 duo (T7700) 2.4GHz, Intel 120GB SSD 6Gb/s, NVIDIA Quadro FX 570M (256 MB),
    Windows 7 64 bit Home Premium (6.1, Build 7601), BIOS Ver 1.00PARTTBLx
    Display: 1680 x 1050 (32 bit 60 Hz), Integrated RAMDAC, Main driver: nvd3dumx.dll,nvwgf2umx,nvwgf2,
    Version 8.17.12.9688, Date 5/31/2012, DDI version 10, Driver model WDDM 1.1
    Please excuse the small text at the beginning, there isn't an option to un-do that error.

    You are very wrong about that mystified. What do YOU think made my computer work without beeping at all hu? (I bet you're gonna tell me). I figured it out.
    RE-INSTALL WINDOWS 7 OS.
    SOLVED.
    DOESN'T BEEP ANY MORE.
    THAT IS A PART OF microsoft ISN'T IT.
    ::: EGO KILLER 9000 :::

  • Splash screen behavior

    I'm unclear on the behavior of the "splash" screen in a custom viewer. I understand that for a single issue app, the splash screen image appears every time that you run the app, regardless of where you left off reading the app last.
    But for multi-issue apps, te splash screen seems to "come and go". I've noticed that it appears the first time that you run the app, and then once in a blue moon after that. But it doesn't appear each time you actually read an issue within the app.
    Can anyone tell me what the behavior of the splash screen is supposed to be for a multi-issue app?
    What I really want is the ability to have a splash screen image that ALWAYS appears when you enter any issue in a multi issue app. In other words, I want the reader to see our corporate branding every time they read or re-read each issue of a multi-issue app.
    Second question: is it on the future roadmap to allow animation or video in this "splash" screen image?

    The splash screen appears for 2 or 3 seconds whenever the app needs to be loaded. If the app is stored in the device's memory, the splash screen doesn't appear. On the iPad, you can get double-tap the Home button to display the app tray and then remove the app from the tray (tap and hold, delete). When you start the app again, the splash screen appears. I'm not aware of a way to get the splash screen to appear even if the app is loaded into the device's memory.

  • BLACK SCREEN startup with 3 beeps, FREEZES when unplugged, Splash screen freeze, HEAT-UP TO BOOT

    BLACK SCREEN startup with 3 beeps, FREEZES when power unplugged, IF IT BOOTS splash screen freezes, OVERHEATING REQUIRED TO BOOT - 0x7B, Event 41 kernel-powe
    Issue: One day I unplug the power, the screen freezes and I get frozen music sound. I shut down, start up, I get 3 beeps (1 short 2 long), which indicates a Video failure according to the Thinkpad Laptop beep code list.
    How I solve the issue day-to-day: I turn the heat up - I disconnect the battery and hard drive and plug in the power then turn it on. I will wait until the underneath is searing hot with a blanket blocking the fan's flow of air, I mean way hot because any cooler and it won't start. Plug stuff back in, Hard drive first, Battery second, turn off with power button hold, unplug power, replug power.
    I turn it on, no beeps, it goes past the first Lenovo screen, then gives me a prompt because it "didn't shut down properly" and continue regular startup. What happens next is the Windows logo appears, and just as the animated windows logo starts to move (you see 2 small colored dots on the screen), it freezes. I see this every time, I know naturally that it means that the laptop is still too hot to go past that point, so I shut it down and try again. After about 5 - 10 tries it will go past the splash screen and into the login area, then it's all fine.
    Sometimes when I unplug the power from the back by accident it will freeze. By accident I mean that the connector wiggles it's self out easily. This unplug freezing thing started happening about 1 week before the 3 beep black screen problem started rolling, so I'm putting 2 together.
    Errors:
    I got a Blue Screen of Death the first time I started it up with the overheating ritual, but I never got it since. It was 0X7B. I ended up changing a setting in BIOS from AHCI to Compatibility Mode, and I passed everything without the BSOD again. I have always had it on AHCI.
    I got another Blue Screen of Death about a week ago, but came as it was on already and I had been using it, and said something about disabling Cache or Shadowing in BIOS. I never got it since.
    BIOS:
    Also, the time was set to 1988 or something in the BIOS.
    Event Viewer events found:
    1. Kernel-Power, Summary page.
    There are critical events for a few things like Kernel-Power, Event ID 41, Task Category (63). There are 19 of them, each day 1 or 2 of them but mostly 1, so this maybe corresponds to my daily ritual.
    "The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly."
    2. Kernel-Processor-Power - Event ID 37, task category (7)
    "The speed of processor 1 in group 0 is being limited by system firmware. The processor has been in this reduced performance state for 71 seconds since the last report."
    3. LMS - HCMI - Event ID 2, Task Category: none
    "LMS Service cannot connect to HECI driver".
    I came across a very sluggish performing control panel for Nvidia before and after this problem, and I tried installing a newer version, which I had to jump through a few hoops to do, like uninstalling first, not just updating. At first it said that the driver wasnt made for the system, or that it wasnt compatible or something, which was wrong. I made it work somehow, but it was still sluggish after install. I rolled it back to an earlier driver, and now it works fine oddly. No sluggish performance / slight freeze window thing going on. No problem at all.
         MSCONFIG.exe, Boot Advanced Options: I have tried twice to change this 1 setting, check box "Number of processors" and change to 2 processors, because I do have 2 processors. I have been able to change this in the past, but it does not save the setting now, and I believe this option was selected before I started having problems, and settings did not disappear then.
    What could this be. The small round BIOS battery? The video card like everyone presumes? (I.E. the entire motherboard replacement), Software? The wiggly power input area? (Not enough power getting in?), Firmware of some sort? The BIOS software being wrong?
    SYSTEM INFO:
    Thinkpad T61p 6457-A24, Intel core 2 duo (T7700) 2.4GHz, Intel 120GB SSD 6Gb/s, NVIDIA Quadro FX 570M (256 MB),
    Windows 7 64 bit Home Premium (6.1, Build 7601), BIOS Ver 1.00PARTTBLx
    Display: 1680 x 1050 (32 bit 60 Hz), Integrated RAMDAC, Main driver: nvd3dumx.dll,nvwgf2umx,nvwgf2,
    Version 8.17.12.9688, Date 5/31/2012, DDI version 10, Driver model WDDM 1.1

    T61-Elwood wrote:
    Laptops of all Brands using Nvidia GPUsmade  from 2007-2008  are faulty.
    You wont get good Nvidia ones on Ebay/forumes anywhere.
    I'd beg to differ on both accounts.
    *61 series nVidia-based ThinkPads from late January through July of 2008 are a 50/50 shot, since the old chips were mixed with the new ones. Any machine built in August and later can be deemed "safe".
    As for the forums (I don't do feebay) there are people who sell genuine, properly-tested planars. However, these do not come at bargain basement prices, and with a good reason if I may add.
    Good luck.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • How do i insert a splash screen or a loading screen and a application image for a phone app on Dream

    How do i insert a splash screen or a loading screen and a application image for a phone app on Dreamweaver 6, 5.5 had the mobile application setting that is seemingly no longer present? and i also heard you can use animanted backgrounds on the mobile application in dreamweaver 6 but figuring out how to set the splash screen and application image like it was in 5.5 would be nice. All i can get to pull up is the web application i developed i am trying to build into a phone app on google chrome, if i could officially designate it as a phone app where i can set each splash screen and app image to where it is recognized as a phone app that would be really nice.

    Duely noted, the server will still not connect, so i have left an inquery in the suggested forum.
    Date: Mon, 15 Oct 2012 07:37:34 -0600
    From: [email protected]
    To: [email protected]
    Subject: How do i insert a splash screen or a loading screen and a application image for a phone app on Dream
        Re: How do i insert a splash screen or a loading screen and a application image for a phone app on Dream
        created by David_Powers in Developing server-side applications in Dreamweaver - View the full discussion
    jmed0411 wrote: the phonegap program loads for quite some time and eventually reaches to the unfortunate conclusion that the server cannot be reached and to please try again. Any ideas on how that problem can be mended if the solution is in my hands?? I haven't used PhoneGap Build recently, but I have seen several reports about problems connecting to the server. One suggestion that I've heard is that there has been unexpectedly high demand on the server since the launch of Edge Tools and Services as part of the Creative Cloud last month. As far as I know, the only thing you can do is wait, and try again later. You could also try posting in the PhoneGap Build forum: http://community.phonegap.com/nitobi/products/nitobi_phonegap_build.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4774799#4774799
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4774799#4774799
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4774799#4774799. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Developing server-side applications in Dreamweaver by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How can i calculate the percentages and update the progressBar in the splash screen form ?

    I created a splash screen form:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;
    using System.Threading;
    namespace GetHardwareInfo
    public partial class SplashScreen : Form
    public SplashScreen()
    InitializeComponent();
    private Mutex mutex = new Mutex();
    public void SyncedClose()
    mutex.WaitOne();
    this.Close();
    mutex.ReleaseMutex();
    public void UpdateProgressBar(int percentage)
    if (this.InvokeRequired)
    mutex.WaitOne();
    if (!IsDisposed)
    this.BeginInvoke(new Action<int>(UpdateProgresPRV), percentage);
    mutex.ReleaseMutex();
    else
    UpdateProgresPRV(percentage);
    private void UpdateProgresPRV(int per)
    if (progressBar1.IsDisposed) return;
    progressBar1.Value = per;
    private void SplashScreen_Load(object sender, EventArgs e)
    The SplashScreen form have in the designer image and on the image a progressBar1.
    Then in form1 i did in the top:
    List<string> WmiClassesKeys = new List<string>();
    IEnumerable<Control> controls;
    string comboBoxesNames;
    SplashScreen splash = new SplashScreen();
    And in the constructor:
    controls = LoopOverControls.GetAll(this, typeof(ComboBox));
    string[] lines = File.ReadAllLines(@"c:\wmiclasses\wmiclasses1.txt");
    foreach (string line in lines)
    foreach (ComboBox comboBox in controls.OfType<ComboBox>())
    if (line.StartsWith("ComboBox"))
    comboBoxesNames = line.Substring(14);
    else
    if (line.StartsWith("Classes"))
    if (comboBox.Name == comboBoxesNames)
    comboBox.Items.Add(line.Substring(14));
    foreach (ComboBox comboBox in controls.OfType<ComboBox>())
    comboBox.SelectedIndex = 0;
    The method GetAll is to loop over specific controls:
    public static IEnumerable<Control> GetAll(Control control, Type type)
    var controls = control.Controls.Cast<Control>();
    return controls.SelectMany(ctrl => GetAll(ctrl, type))
    .Concat(controls)
    .Where(c => c.GetType() == type);
    When i'm running the program it's taking some time to make the foreach loops in this time i need to show the SplashScreen and update the progressBar untill the foreach loops over.

    Don't use Application.Doevents. It's not required and can cause problems.
    I do not really grasp the approach you are taking here. So let me make a different suggestion:
    SplashScreen:
    using System;
    using System.Windows.Forms;
    using System.Threading;
    namespace WindowsFormsApplication1
    public partial class SplashScreen : Form
    private static SplashScreen DefaultInstance;
    public SplashScreen()
    InitializeComponent();
    public static void ShowDefaultInstance()
    Thread t = new Thread(TMain);
    t.Name = "SplashUI";
    t.Start();
    public static void CloseDefaultInstance()
    DefaultInstance.Invoke(new Action(DefaultInstance.Close));
    private static void TMain()
    DefaultInstance = new SplashScreen();
    DefaultInstance.Show();
    Application.Run(DefaultInstance);
    public static void UpdateProgress(int Progress)
    if (DefaultInstance.InvokeRequired)
    DefaultInstance.Invoke(new Action<int>(UpdateProgress), Progress);
    else
    DefaultInstance.progressBar1.Value = Progress;
    Form1:
    using System.Windows.Forms;
    namespace WindowsFormsApplication1
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    SplashScreen.ShowDefaultInstance();
    for (int i = 1; i<=100; i++)
    System.Threading.Thread.Sleep(20); // simulates work
    SplashScreen.UpdateProgress(i);
    SplashScreen.CloseDefaultInstance();
    EDIT: Please note that the progressbar itself is being animated by the system, so it might look slower than it really is. To workaround this, there are solutions available (you'll find them) that first set the value one higher than necessary, then
    back to the actual value.
    Edit #2: You do need a different thread, otherwise the UI is locked while the loop is running in your Form1's constructor.
    Armin

  • What is a Splash Screen?

    Hi,
    Been told as part of a university assignment i need to have a 30secs introductry Splash screen?
    What is a splash screen?
    Any tutorials on how to make them?
    Thanks
    Sam

    a splash screen is a useless site component that was popular in the late 90's. a splash screen or intro is a boring and tiresome animation that drives users of your site away and makes your site virtually unsearchable by search engines. most commonly these splash screens are accompanied by a "skip intro" button which implies that intro itself is not important and can easily be skipped. Splash screens usually consist of logos spinning and scaling while useless text fades in and out. Examples of such text might be
    prepare yourself
    to be amazed
    by what
    you are about to see
    never before has the internet
    provided an experience such as this
    between each phrase there is upwards of 5 seconds of wait time to leave the user literally teetering on the edge of their seat.
    for more on the subject:
    http://skipintros.com/
    http://www.homestarrunner.com/sbemail51.html
    http://www.shimonsandler.com/splash-pages-bad-for-usability-bad-for-seo/
    Seriously, read the last article and ask your university instructor why he believes this is a worthy assignment in 2010.
    Flash is great for animation but needs to be used in the proper context.

  • Splash screen HELP!!!!

    I am trying to implement a splash screen but cannot get it to be displayed....and also how do I get ito appear for a certain before it being disposed.
    JWindow splash = new JWindow();
         JLabel image = new JLabel(new ImageIcon("images/splash.jpg"));
         splash.getContentPane().add(image, BorderLayout.CENTER);
         splash.setVisible(true);
    thanks
    siraj

    Hi!
    I post code of a splash screen I'm using. I expect it helps you:
    import java.awt.*;
    public class SplashWindow extends Window implements Runnable {
         private Thread runner;   
         private Image splashIm;   
         private StringBuffer Message;   
         private Image Buffer;   
         private Graphics gBuffer;   
         private int animationStep;
         private int width;
         private int height;
         public SplashWindow(Frame parent, Image splashIm) {       
              this(parent, 400, 222, splashIm);
         public SplashWindow(Frame parent, int width, int height, Image splashIm) {       
              super(parent);
              this.width = width;
              this.height = height;
              this.splashIm = splashIm;       
              setSize(width,height);
              animationStep = 0;       
              /* Center the window */       
              Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize();       
              Rectangle winDim = getBounds();       
              setLocation((screenDim.width - winDim.width) / 2, (screenDim.height - winDim.height) / 2);
              setVisible(true);       
              toFront();       
              start();   
         //Used for flicker-free offscreen drawing   
         public void addNotify() {       
              super.addNotify();       
              Buffer = createImage(width, height);
              gBuffer = Buffer.getGraphics();   
         public void buildBuffer() {     
              if (splashIm != null) {       
                   gBuffer.setColor(Color.white);       
                   gBuffer.fillRect(0, 0, width, height);
                   gBuffer.drawImage(splashIm,0,0,this);       
                   drawAnimation();               
                   //Overlay a cute animation       
                   gBuffer.setColor(Color.white);       
                   gBuffer.drawString(Message.toString(), (width/20), (height-8));
         public void drawAnimation() {     
              if (gBuffer == null)       
                   return;     
              if (animationStep < 0)       
                   animationStep = 399;     
              for (int i=0; i<400; i++) {       
                   int thisColor = (int)(((float)(animationStep + i))/(float)400 * (float)256);       
                   while (thisColor > 255) {         
                        thisColor = thisColor-256;       
                   while (thisColor < 0) {         
                        thisColor = thisColor+256;       
                   gBuffer.setColor(new Color(0, 0, thisColor) );
                   gBuffer.drawLine(i, (width/2), i, height);
         public void paint(Graphics g) {     
              if (Buffer != null)       
                   if (g != null)         
                        g.drawImage(Buffer, 0, 0, this);   
         // Use this to change the status message. Note that the redraw   
         // is done elsewhere (FYI, inside the animation thread below)   
         public void setMessage(String message) {     
              Message = new StringBuffer(message);   
         public void start() {
              runner = new Thread(this);     
              runner.start();   
         public void stop() {
              runner.interrupt();     
              runner = null;   
         public void run() {
              try { 
                   while (!Thread.interrupted()) {           
                        buildBuffer();                 
                        //Build the offscreen buffer           
                        this.paint(this.getGraphics());
                        //Draw the offscreen buffer           
                        animationStep-=8;           
                        Thread.sleep(40);        
              catch(InterruptedException e) {}   
         protected void finalize() {     
              stop();     
              this.splashIm.flush();     
              this.splashIm = null;     
              Buffer.flush();     
              Buffer = null;   
    }I use this splashscreen through this class:
    import java.awt.*;
    public class SplashScreen extends javax.swing.JFrame {
         private SplashWindow sw = null;
         public SplashScreen(String titulo, String imagen, int w, int h) {
              super(titulo);
              setSize(w,h);
              Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize();
              Rectangle frameDim = this.getBounds();
              setLocation((screenDim.width-frameDim.width)/2,(screenDim.height-frameDim.height)/2);
              MediaTracker mt = new MediaTracker(this);
              Image splashIm = Toolkit.getDefaultToolkit().getImage(this.getClass().getResource(imagen));
              mt.addImage(splashIm,0);          
              try { 
                   mt.waitForID(0);
              catch(InterruptedException ie) {}
              sw = new SplashWindow(this, w, h, splashIm);
         public void setMensaje(String mensaje) {
              if (sw != null)
                   sw.setMessage(mensaje);
         public void cerrar() {
              sw.dispose();
              this.setVisible(false);
              this.dispose();
    }Maybe some code are in spanish, but you can easily translate to english.
    Regards.

  • Splash Screen "Play" button Trouble

    I have a splash screen at the beginning of my animation.  When I push the play button, I want it to go straight to the animated map and start playing, but it just goes to the map and the user has to push play again.  How do I make it so the play button on the splash screen makes the map automatically start moving in the animation?

    How is all of this set up? Is the map animation on the main timeline or is this animation in its own movieClip? If the map animation is on the main timeline, how are navigating to that part of the movie? Are you using "gotoAndStop()" or "gotoAndPlay()" or something else?

  • Turn off splash screen, tune and beeps?

    How can I turn off:
    -- the initial splash screen video of shaking hands
    -- the the initial little tune that plays
    -- the little beeps that play with every button press
    I am using an N93.
    Thanks for your help.
    John

    The keypad tone:
    Menu -> Tools -> Profiles -> General (or the profile, which is currently set) -> Options -> Personalise. Then go to Keypad tones and set to Off.
    The initial tune:
    In order to have this off, the Warning Tones option in the given profile should also be Off.
    The grasping hands:
    Go to Menu -> Tools -> Settings -> Phone settings -> General -> Welcome note/logo. Now set to Text and enter some text or choose Image and select a picture. This will be the startup animation/text. If you simply want blank screen, draw a white image in Paint, save as JPG and put for logo
    Ericsson T10i -> Nokia 7110 -> Siemens C45, C55, M55, M65 -> Nokia 6131, N73, N82 -> HTC Wildfire, Desire HD -> Nokia Lumia 800 -> HTC Desire X -> Lumia 820 -> Sony Xperia SP -> Lumia 925 + Sennheiser CX 500
    If I've helped, use the Kudos button to thank

Maybe you are looking for