~ubuntu-branches/ubuntu/precise/stellarium/precise

« back to all changes in this revision

Viewing changes to scripts/tests/screen_image3.ssc

  • Committer: Bazaar Package Importer
  • Author(s): Scott Howard
  • Date: 2010-02-15 20:48:39 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100215204839-u3qgbv60rho997yk
Tags: 0.10.3-0ubuntu1
* New upstream release.
  - fixes intel rendering bug (LP: #480553)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// Name: ScreenImageMgr Demo
 
3
// License: Public Domain
 
4
// Author: Matthew Gates
 
5
// Description: An example script showing how to use the ScreenImageMgr module.
 
6
//
 
7
 
 
8
include("status_label.inc");
 
9
useStatusLabel("ScreenImageMgr test 3: ", 50, 50, 16, "#ff0000");
 
10
 
 
11
status("Messing with the alpha of a loaded image");
 
12
core.wait(2.0);
 
13
ScreenImageMgr.createScreenImage("logo", "../textures/earthmap.png", 50, 150, 1.0, true, 1.0, 1.0);
 
14
status("loaded");
 
15
core.wait(1);
 
16
for(i=1.0; i>=0.0; i-=0.1)
 
17
{
 
18
        status("Alpha = " + i);
 
19
        ScreenImageMgr.setImageAlpha("logo", i);
 
20
        core.wait(0.5);
 
21
}
 
22
core.wait(2);
 
23
ScreenImageMgr.deleteAllImages();
 
24
LabelMgr.deleteAllLabels();
 
25