forked from leachim6/hello-world
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tao Presentations.ddd
68 lines (61 loc) · 2.32 KB
/
Tao Presentations.ddd
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// ****************************************************************************
// hello_world.ddd Tao project
// ****************************************************************************
//
// File Description:
//
// Original hello world with Tao Presentations.
// http://www.taodyne.com/shop/en/blog/3-getting-started-with-tao-presentations
//
//
//
// ****************************************************************************
// (C) 1992-2010 Christophe de Dinechin <christophe@taodyne.com>
// (C) 2010 Jérôme Forissier <jerome@taodyne.com>
// (C) 2010 Catherine Burvelle <cathy@taodyne.com>
// (C) 2010 Taodyne SAS
// ****************************************************************************
color "white"
milkyway 10000
rotatez -23
earth 400
hello_world 440
milkyway R ->
// ----------------------------------------------------------------------------
// Draw the Milky Way
// ----------------------------------------------------------------------------
locally
texture_wrap true, true
texture_transform {scale 5, 5, 5}
texture "milkyway.jpg"
rotatey 0.02 * page_time + 100
scale 1, -1, 1
sphere R
earth R ->
// ----------------------------------------------------------------------------
// Draw Earth
// ----------------------------------------------------------------------------
locally
texture "earth.bmp"
texture_wrap true, true
rotatey 5 * page_time + 250
sphere 0, 0, 0, R
hello_world R ->
// ----------------------------------------------------------------------------
// Draw "hello world" text
// ----------------------------------------------------------------------------
locally
frame_texture 1900, 600,
color 1, 1, 1, 1
reset_transform
// If font Arial Unicode installed, it will be used.
// Otherwise, unifont will be used (unifont is packaged
// with Tao presentations).
font "Arial Unicode MS", "unifont", 72
move_to -800, -9, 0
text "Hello World or Καλημέρα κόσμε; or こんにちは 世界"
rotatey -11 * page_time + 180
color 20% , 20% , 20% , 70%
sphere 0, 0, 0, R - 30
color 100% , 90% , 20% , 90%
sphere 0, 0, 0, R