1
InitialObjectDescriptor {
3
audioProfileLevelIndication 1
4
visualProfileLevelIndication 1
5
sceneProfileLevelIndication 1
6
graphicsProfileLevelIndication 1
7
ODProfileLevelIndication 1
11
decConfigDescr DecoderConfigDescriptor {
13
decSpecificInfo BIFSConfig {
31
"This test shows how to fill object with linear gradients."
32
"Here the start and end point of the gradient are close"
33
"You can click on the rectangle to move the start and the end of gradient."
34
"You can also drag it."
36
"GPAC Regression Tests"
37
"(C) 2002-2006 GPAC Team"
39
title "Linear Gradient"
44
appearance Appearance {
46
lineProps LineProperties {
50
texture DEF GL LinearGradient {
51
key [0 0.45 0.5 0.55 1]
52
keyValue [0.2118 0.447 0.039 0.2118 0.447 0.039 0.2627 0.933 0 0.2392 0.3098 0.04313 0.2392 0.3098 0.04313]
56
geometry DEF R Rectangle {
64
eventIn SFVec3f set_frac
65
eventIn SFBool set_down
66
field SFNode grad USE GL
67
field SFBool isDown FALSE
68
url ["javascript:function set_down(value, timestamp) {isDown = value;}function set_frac(value, timestamp) {if (!isDown) return;pos = (value.x + 200)/400;grad.startPoint.x = pos - 1;grad.endPoint.x = 1 + pos;print('pos ' + pos);}" ]
73
ROUTE TS.isActive TO SC.set_down
74
ROUTE TS.hitPoint_changed TO SC.set_frac