Отсканируй на iPhone, чтобы установить
This shortcut randomly generates art. Here are photos of the different types of art it makes
Что нового
Версия 1.0
First release
Что делает
Действий: 19-
Random Colorcom.sindresorhus.Actions
-
Random Colorcom.sindresorhus.Actions
-
Create Gradient Color Imagecom.sindresorhus.Actions
-
List
-
Get Item from List
-
Overlay Text
-
List
-
Get Item from List
-
Overlay Text
-
List
-
Get Item from List
-
Overlay Text
-
Find Photos
-
Symbol Imagecom.sindresorhus.Actions
-
Take Photo
-
List
-
Combine Images
-
Quick Look
-
Save to Photo Album
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#define color red
rawAction("com.sindresorhus.Actions.RandomColorIntent", {
"AppIntentDescriptor": ""
})
rawAction("com.sindresorhus.Actions.RandomColorIntent", {
"AppIntentDescriptor": ""
})
rawAction("com.sindresorhus.Actions.CreateGradientColorImageIntent", {
"AppIntentDescriptor": "",
"endColor": "{}",
"height": "1024",
"startColor": "{}",
"width": "1024"
})
const List = list("e", "a", "s", "n", "o", "c", "r")
getRandomItem(List)
rawAction("is.workflow.actions.overlaytext", {
"WFImage": "GradientColorImage",
"WFPercentageFontSize": 0.5059999823570251,
"WFText": "{}",
"WFTextPosition": "Middle Left",
"WFTextRotation": "0"
})
const List1 = list("☆", "♪", "□", "○", "♡", "¥")
getListItem(List1, 0)
rawAction("is.workflow.actions.overlaytext", {
"WFImage": "ImageWithText",
"WFPercentageFontSize": 0.4399999976158142,
"WFText": "{}",
"WFTextRotation": "0"
})
const List2 = list("/", "|", "\", "+")
getListItem(List2, 0)
rawAction("is.workflow.actions.overlaytext", {
"WFImage": "ImageWithText1",
"WFPercentageFontSize": 0.4560000002384186,
"WFText": "{}",
"WFTextPosition": "Middle Right",
"WFTextRotation": "0"
})
rawAction("is.workflow.actions.filter.photos", {
"WFContentItemFilter": "",
"WFContentItemLimitEnabled": true,
"WFContentItemLimitNumber": 1,
"WFContentItemSortProperty": "Random"
})
rawAction("com.sindresorhus.Actions.SymbolImageIntent", {
"AppIntentDescriptor": "",
"color": "#000000",
"symbolName": "eye.fill"
})
takePhoto(1, true)
const List3 = list(, , , )
rawAction("is.workflow.actions.image.combine", {
"WFImageCombineMode": "Ask",
"WFInput": "List3"
})
quicklook(CombinedImage)
savePhoto(CombinedImage)
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от oliveranimates7
Вам также может понравиться
Реклама