This demonstrates using the Figma REST API to use symbols loaded from a Figma file to create a pop-art rendition of an image
We use 2 endpoints in this project:
GET /v1/files/:file_key- Get the JSON representation of a file to extract top level frames (the symbols)
GET /v1/images/:file_key- Render each frame as an image
We render each of the top level frames in your Figma document and use those rendered images to fill in the input file provided.
API_TOKENin kaleidescope.py with your personal access token.
python kaleidescope.py INPUT_FILE FILE_KEYwhere
FILE_KEYis the figma file where the symbols you want to use is and
INPUT_FILEis the image you want to render.
Your output image will appear as