mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
sample wip
This commit is contained in:
parent
eff068f59b
commit
b6a9b1e397
2 changed files with 92 additions and 76 deletions
|
@ -95,5 +95,5 @@ struct UserExample : tvgexam::Example
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
// Ensure thread is 1 for expression support
|
// Ensure thread is 1 for expression support
|
||||||
return tvgexam::main(new UserExample, argc, argv, false, 1024, 1024, 1);
|
return tvgexam::main(new UserExample, argc, argv, false, 500, 500, 1);
|
||||||
}
|
}
|
|
@ -9,6 +9,21 @@
|
||||||
"h": 512,
|
"h": 512,
|
||||||
"assets": [],
|
"assets": [],
|
||||||
"slots": {
|
"slots": {
|
||||||
|
"rect_rotation": {
|
||||||
|
"p": {
|
||||||
|
"x": "var $bm_rt = time * 360;"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rect_scale": {
|
||||||
|
"p": {
|
||||||
|
"x": "var $bm_rt = [];\n$bm_rt[0] = value[0] + Math.cos(2 * Math.PI * time) * 100;\n$bm_rt[1] = value[1];"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rect_position": {
|
||||||
|
"p": {
|
||||||
|
"x": "var $bm_rt = [];\n$bm_rt[0] = value[0] + Math.cos(2 * Math.PI * time) * 100;\n$bm_rt[1] = value[1];"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"layers": [
|
"layers": [
|
||||||
{
|
{
|
||||||
|
@ -74,4 +89,5 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"meta": { "g": "Glaxnimate 0.4.6-26-g7b05e75c" }
|
"meta": { "g": "Glaxnimate 0.4.6-26-g7b05e75c" }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue