File: circletext.pov

package info (click to toggle)
povray 1%3A3.6.1-12
  • links: PTS
  • area: non-free
  • in suites: lenny, squeeze
  • size: 31,084 kB
  • ctags: 20,310
  • sloc: ansic: 110,032; cpp: 86,573; sh: 13,595; pascal: 5,942; asm: 2,994; makefile: 1,753; ada: 1,637
file content (78 lines) | stat: -rw-r--r-- 1,622 bytes parent folder | download | duplicates (2)
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
69
70
71
72
73
74
75
76
77
78
//	Persistence of Vision Raytracer Version 3.5 Scene Description File
//	File: circletext.pov
//	Author: Ron Parker
//	Description:
// A demonstration of the Circle_Text(), Align_Object(), and Center_Object macros.
//
// -w320 -h240
// -w800 -h600 +a0.3
//
//*******************************************

#include "shapes.inc"

camera {location -3*z look_at 0}
light_source {-20*z rgb 1 shadowless}

background {rgb 1}

cylinder {<0,-2,.01>,<0,2,.01>,.01 pigment {color rgb<.7,1,.7>}}
cylinder {<0,-2,.01>,<0,2,.01>,.01 pigment {color rgb<.7,.7,1>} rotate 45*z}
cylinder {<0,-2,.01>,<0,2,.01>,.01 pigment {color rgb<.7,.7,1>} rotate -45*z}

object {
	Circle_Text(
		"cyrvetic.ttf",
		"Centered text, not inverted",
		.2, 0.0, .01, 1.1, false, Align_Center, 90
	)
	pigment {color green 1}
}

object {
	Circle_Text(
		"cyrvetic.ttf",
		"Centered text, inverted",
		.2, 0.0, .01, 1.1, true, Align_Center, -90
	)
	pigment {color green 1}
}

object {
	Circle_Text(
		"cyrvetic.ttf",
		"left text",
		.15, 0.0, .01, 1.3, true, Align_Left, -135
	)
	pigment {color blue 1}
}

object {
	Circle_Text(
		"cyrvetic.ttf",
		"right text",
		.15, 0.0, .01, 1.3, true, Align_Right, -45
	)
	pigment {color blue 1}
}

object {
	Align_Object(text {ttf "cyrvetic.ttf", "left aligned", .01, 0}, -x, 0)
	scale <.15,.2,1>
	translate .1*y
	pigment {color red 1}
}

object {
	Center_Object(text {ttf "cyrvetic.ttf", "center aligned", .01, 0}, x)
	scale <.15,.2,1>
	translate -.1*y
	pigment {color red 1}
}

object {
	Align_Object(text {ttf "cyrvetic.ttf", "right aligned", .01, 0}, x, 0)
	scale <.15,.2,1>
	translate -.3*y
	pigment {color red 1}
}