Created
October 14, 2021 14:41
-
-
Save kemiljk/422fcc872562717fef2eaca6beae1c03 to your computer and use it in GitHub Desktop.
Scripter: Create slides, maintaining their aspect ratio, at any width.
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
function buildSlides() { | |
const frame = figma.createFrame() | |
const width = 1440 | |
const height = width * 9/16 | |
frame.name = "Slide" | |
frame.resize(width, height) | |
} | |
buildSlides() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment