Created
July 27, 2020 22:51
-
-
Save goldzulu/7a550d982b452caeccdcbba4aafa36ca to your computer and use it in GitHub Desktop.
An APL 1.4 example on how to use fonts and text (AVG) VectorGraphics Component in Alexa Skill
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "APL", | |
"version": "1.4", | |
"settings": {}, | |
"theme": "dark", | |
"import": [], | |
"resources": [], | |
"styles": {}, | |
"onMount": [], | |
"graphics": { | |
"GoldzuluText": { | |
"type": "AVG", | |
"version": "1.1", | |
"height": "100vh", | |
"width": "100vw", | |
"items": [ | |
{ | |
"type": "text", | |
"fill": "gold", | |
"fontFamily": "amazon-ember, sans-serif", | |
"fontSize": 80, | |
"text": "GOLDZULU", | |
"x": "${viewport.width/2}", | |
"y": "${viewport.height/2}", | |
"textAnchor": "middle" | |
} | |
] | |
} | |
}, | |
"commands": {}, | |
"layouts": {}, | |
"mainTemplate": { | |
"parameters": [ | |
"payload" | |
], | |
"items": [ | |
{ | |
"type": "Container", | |
"height": "100vh", | |
"width": "100vw", | |
"alignItems": "center", | |
"justifyContent": "center", | |
"items": [ | |
{ | |
"type": "VectorGraphic", | |
"source": "GoldzuluText" | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment