Gradient Renderer example property names updated
[platform/core/uifw/dali-demo.git] / resources / scripts / gradient.json
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 {
18   // a tree of actors
19   "stage": [{
20     "type": "Control",
21     "size": [400,600,1],
22     "parentOrigin": "CENTER",
23     "anchorPoint": "CENTER",
24     "background": {
25       "rendererType" : "gradient",
26       "startPosition" : [-0.5, -0.5],
27       "endPosition": [0.5,0.5],
28       "stopColor" : [
29         [1,0,0,1],
30         [1,0.25,0,1],
31         [1,0.5,0,1],
32         [1,0.75,0,1],
33         [1,1,0,1]
34       ],
35       "stopOffset" : [ 0, 0.25, 0.5, 0.75, 1.0 ]
36     }
37   }]
38 }