4.4.6 Script circletext

Utilisation : Les liens ne sont pas apparents. Pour obtenir des informations sur un mot clé, cliquez-le dans le script !

// 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.
//*******************************************

#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}
}

Et voici ce que nous obtenons :

Retour Retour