Skip to content

Commit

Permalink
Add examples for all shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasaglia committed Feb 14, 2023
1 parent bca0526 commit e9f08e3
Show file tree
Hide file tree
Showing 19 changed files with 3,235 additions and 12 deletions.
1 change: 1 addition & 0 deletions docs/docs/examples/ellipse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"v":"5.7.1","ip":0,"op":180,"nm":"Animation","mn":"{ca8052f4-553a-43a5-a578-63690ef39ea2}","fr":60,"w":300,"h":300,"assets":[],"layers":[{"ddd":0,"ty":4,"ind":0,"st":0,"ip":0,"op":180,"nm":"Layer","mn":"{2a5a225a-4d30-4c33-a6e5-cc27e7d60ab6}","ks":{"a":{"a":0,"k":[256,256]},"p":{"a":0,"k":[256,256]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"gr","nm":"Ellipse","mn":"{019cd1ce-b739-4606-b573-5ba0590f0beb}","it":[{"ty":"el","nm":"Ellipse","mn":"{b37b010c-d69f-4410-a980-ca32712e1bd7}","d":1,"p":{"a":0,"k":[150,150]},"s":{"a":1,"k":[{"t":0,"s":[250,130],"h":0,"o":{"x":[0.333],"y":[0]},"i":{"x":[0.667],"y":[1]}},{"t":90,"s":[130,250],"h":0,"o":{"x":[0.333],"y":[0]},"i":{"x":[0.667],"y":[1]}},{"t":180,"s":[250,130]}]}},{"ty":"st","nm":"Stroke","mn":"{7c2c70d2-ca57-44a1-9dd3-1275fb1b8928}","o":{"a":0,"k":100},"lc":2,"lj":2,"ml":0,"w":{"a":0,"k":10},"c":{"a":0,"k":[0.114,0.157,0.282]}},{"ty":"fl","nm":"Fill","mn":"{92d7b51b-6d14-4dcf-a57b-fe313f089e98}","o":{"a":0,"k":100},"r":1,"c":{"a":0,"k":[0.196,0.314,0.690]}},{"ty":"tr","a":{"a":0,"k":[221.538,190.626]},"p":{"a":0,"k":[221.538,190.626]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100}}]}]}],"meta":{"g":"Glaxnimate 0.5.1"}}
267 changes: 267 additions & 0 deletions docs/docs/examples/ellipse.rawr
Original file line number Diff line number Diff line change
@@ -0,0 +1,267 @@
{
"animation": {
"__type__": "MainComposition",
"animation": {
"__type__": "AnimationContainer",
"first_frame": 0,
"last_frame": 180
},
"fps": 60,
"group_color": "#00000000",
"height": 300,
"locked": false,
"name": "Animation",
"shapes": [
{
"__type__": "Layer",
"animation": {
"__type__": "AnimationContainer",
"first_frame": 0,
"last_frame": 180
},
"group_color": "#00000000",
"locked": false,
"mask": {
"__type__": "MaskSettings",
"inverted": false,
"mask": "NoMask"
},
"name": "Layer",
"opacity": {
"value": 1
},
"parent": null,
"render": true,
"shapes": [
{
"__type__": "Group",
"group_color": "#00000000",
"locked": false,
"name": "Ellipse",
"opacity": {
"value": 1
},
"shapes": [
{
"__type__": "Fill",
"color": {
"value": "#3250b0"
},
"fill_rule": "NonZero",
"group_color": "#00000000",
"locked": false,
"name": "Fill",
"opacity": {
"value": 1
},
"use": null,
"uuid": "92d7b51b-6d14-4dcf-a57b-fe313f089e98",
"visible": true
},
{
"__type__": "Stroke",
"cap": "RoundCap",
"color": {
"value": "#1d2848"
},
"group_color": "#00000000",
"join": "RoundJoin",
"locked": false,
"miter_limit": 0,
"name": "Stroke",
"opacity": {
"value": 1
},
"use": null,
"uuid": "7c2c70d2-ca57-44a1-9dd3-1275fb1b8928",
"visible": true,
"width": {
"value": 10
}
},
{
"__type__": "Ellipse",
"group_color": "#00000000",
"locked": false,
"name": "Ellipse",
"position": {
"value": {
"x": 150,
"y": 150
}
},
"reversed": false,
"size": {
"keyframes": [
{
"after": {
"x": 0.6666666666666666,
"y": 1
},
"before": {
"x": 0.3333333333333333,
"y": 0
},
"time": 0,
"value": {
"height": 130,
"width": 250
}
},
{
"after": {
"x": 0.6666666666666666,
"y": 1
},
"before": {
"x": 0.3333333333333333,
"y": 0
},
"time": 90,
"value": {
"height": 250,
"width": 130
}
},
{
"after": {
"x": 1,
"y": 1
},
"before": {
"x": 0,
"y": 0
},
"time": 180,
"value": {
"height": 130,
"width": 250
}
}
]
},
"uuid": "b37b010c-d69f-4410-a980-ca32712e1bd7",
"visible": true
}
],
"transform": {
"__type__": "Transform",
"anchor_point": {
"value": {
"x": 221.5384615384615,
"y": 190.6261180679785
}
},
"position": {
"value": {
"x": 221.5384615384615,
"y": 190.6261180679785
}
},
"rotation": {
"value": 0
},
"scale": {
"value": {
"x": 1,
"y": 1
}
}
},
"uuid": "019cd1ce-b739-4606-b573-5ba0590f0beb",
"visible": true
}
],
"transform": {
"__type__": "Transform",
"anchor_point": {
"value": {
"x": 256,
"y": 256
}
},
"position": {
"value": {
"x": 256,
"y": 256
}
},
"rotation": {
"value": 0
},
"scale": {
"value": {
"x": 1,
"y": 1
}
}
},
"uuid": "2a5a225a-4d30-4c33-a6e5-cc27e7d60ab6",
"visible": true
}
],
"uuid": "ca8052f4-553a-43a5-a578-63690ef39ea2",
"visible": true,
"width": 300
},
"assets": {
"__type__": "Assets",
"colors": {
"__type__": "NamedColorList",
"name": "",
"uuid": "61538465-de48-45e5-abb0-83bc0cb60938",
"values": [
]
},
"fonts": {
"__type__": "FontList",
"name": "",
"uuid": "1452cfb9-3195-4041-88a3-d8b717f0c2c8",
"values": [
]
},
"gradient_colors": {
"__type__": "GradientColorsList",
"name": "",
"uuid": "d3f06af9-8387-402b-bb3e-ba96f95fe94e",
"values": [
]
},
"gradients": {
"__type__": "GradientList",
"name": "",
"uuid": "2d1d30b9-2d73-45f2-bde8-0837fd0a137f",
"values": [
]
},
"images": {
"__type__": "BitmapList",
"name": "",
"uuid": "4b5818e4-4eb8-418c-a0d6-633d35d71576",
"values": [
]
},
"name": "",
"precompositions": {
"__type__": "PrecompositionList",
"name": "",
"uuid": "c2e971d3-ebfd-4486-9045-b975e4d627f6",
"values": [
]
},
"uuid": "2f0ea276-d765-4271-9ccb-ccf065781c64"
},
"format": {
"format_version": 7,
"generator": "Glaxnimate",
"generator_version": "0.5.1"
},
"info": {
"author": "",
"description": "",
"keywords": [
]
},
"metadata": {
}
}
1 change: 1 addition & 0 deletions docs/docs/examples/inflate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"v":"5.7.1","ip":0,"op":120,"nm":"Animation","mn":"{c47273c8-f8c5-463d-992a-056f17c42f22}","fr":60,"w":300,"h":300,"assets":[],"layers":[{"ddd":0,"ty":4,"ind":0,"st":0,"ip":0,"op":180,"nm":"Layer","mn":"{1e59c23e-7c6a-4a84-b19e-e1c102a7bf59}","ks":{"a":{"a":0,"k":[256,256]},"p":{"a":0,"k":[256,256]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"gr","nm":"PolyStar","mn":"{5641a3f6-30d9-4ed1-bcbe-9529f70a53d2}","it":[{"ty":"sr","nm":"PolyStar","mn":"{bf4b53e0-0582-4499-b42a-000924811463}","d":1,"p":{"a":0,"k":[150,150]},"or":{"a":0,"k":100},"os":{"a":0,"k":0},"r":{"a":0,"k":359.715},"pt":{"a":0,"k":5},"sy":2},{"ty":"st","nm":"Stroke","mn":"{1a34e769-043c-46e8-adc8-f54ffeb3de05}","o":{"a":0,"k":100},"lc":2,"lj":2,"ml":0,"w":{"a":0,"k":20},"c":{"a":0,"k":[1,0.341,0.016]}},{"ty":"fl","hd":true,"nm":"Fill","mn":"{9e2b21a4-a479-4ab3-95de-95c0120b5de6}","o":{"a":0,"k":100},"r":1,"c":{"a":0,"k":[1,0.980,0.282]}},{"ty":"pb","nm":"Inflate and Deflate","mn":"{b6488548-fa40-4556-b15f-610d5e5c2d75}","a":{"a":1,"k":[{"t":0,"s":[-30],"h":0,"o":{"x":[0],"y":[0]},"i":{"x":[1],"y":[1]}},{"t":60,"s":[50],"h":0,"o":{"x":[0],"y":[0]},"i":{"x":[1],"y":[1]}},{"t":120,"s":[-30]}]}},{"ty":"tr","a":{"a":0,"k":[240.086,228.751]},"p":{"a":0,"k":[240.301,233.750]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100}}]}]}],"meta":{"g":"Glaxnimate 0.5.2"}}
Loading

0 comments on commit e9f08e3

Please sign in to comment.