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 79 80 81 82 83 84 85 86 87
|
// This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
// To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a
// letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
// Persistence of Vision Raytracer 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
//
//*******************************************
#version 3.7;
global_settings { assumed_gamma 2.2 }
#include "shapes.inc"
camera{ location -3*z
right x*image_width/image_height
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}
}
|