Skip to content

Instantly share code, notes, and snippets.

Avadh avadhbsd

  • India
View GitHub Profile
View mospecs.ts
//https://thomas-lowry.github.io/figma-plugin-ds/#onboarding
figma.showUI(__html__)
var specFrame
var rowHeight = 51
figma.ui.resize(300,480)
var hexToRgbColor
View drawCurve
function drawCurve(x1,y1,x2,y2,) {
var rect = figma.createFrame()
rect.resize(500, 100)
setFillColor(rect,"FFFFFF" )
// hexToRgbColor = hexToRgb("F6F6F6")
// rect.fills = [{type: 'SOLID',
View jsonModel.json
{
"firstKeyTime": 0,
"lastKeyTime": 0.66666666666667,
"layers": [
{
"name": "Button Login",
"index": 1,
"props": [
{
"name": "Scale",
View curve.ts
var curve = figma.createVector()
var startX = 0 + " "
var startY = 100 + " "
var controlPointX1 = (100 * 0.5) + " "
var controlPointY1 = (100 * 0) + " "
var controlPointX2 = (100 * 0.14) + " "
var controlPointY2 = (100 * .99) + " "
var endX = 100 + " "
var endY = 0
View params
{"poster": {"title": "Its Goona bethe new poser","description": "Museum Quality Poster. Thick, durable, matte perfection, shouting out your message.","units_in_stock": 100,"credits": "avadh","price": "890.0","productUrl": "www.poster.com","shippingDetails": "Rates provided during checkout, ships withing 3-5 days"}}
You can’t perform that action at this time.