Отсканируй на iPhone, чтобы установить
This is for making app icons
Что нового
Версия 1.0
First release
Что делает
Действий: 23-
Choose from MenuWhat type of gradient
-
Choose from Menutop to bottom
-
Ask for InputEnter a hex value
-
Ask for InputEnter another hex value
-
Create Gradient Color Imagecom.sindresorhus.Actions
-
Choose from Menuleft to right
-
Ask for InputEnter a hex value
-
Ask for InputEnter another hex value
-
Create Gradient Color Imagecom.sindresorhus.Actions
-
Choose from Menutop left to bottom right
-
Ask for InputEnter a hex value
-
Ask for InputEnter another hex value
-
Create Gradient Color Imagecom.sindresorhus.Actions
-
Choose from Menutop right to bottom left
-
Ask for InputEnter a hex value
-
Ask for InputEnter another hex value
-
Create Gradient Color Imagecom.sindresorhus.Actions
-
Ask for InputEnter the name of an SF symbol
-
Ask for InputEnter a third hex value
-
Symbol Imagecom.sindresorhus.Actions
-
Overlay Image
-
Quick Look
-
Save to Photo Album
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#define color red
const MenuResult = menu "What type of gradient " {
item "top to bottom":
prompt("Enter a hex value")
prompt("Enter another hex value")
rawAction("com.sindresorhus.Actions.CreateGradientColorImageIntent", {
"AppIntentDescriptor": "",
"endColor": "#{}",
"height": "1024",
"startColor": "#{}",
"width": "1024"
})
item "left to right":
prompt("Enter a hex value")
prompt("Enter another hex value")
rawAction("com.sindresorhus.Actions.CreateGradientColorImageIntent", {
"AppIntentDescriptor": "",
"direction": "leftToRight",
"endColor": "#{}",
"height": "1024",
"startColor": "#{}",
"width": "1024"
})
item "top left to bottom right":
prompt("Enter a hex value")
prompt("Enter another hex value")
rawAction("com.sindresorhus.Actions.CreateGradientColorImageIntent", {
"AppIntentDescriptor": "",
"direction": "diagonalTopLeftToBottomRight",
"endColor": "#{}",
"height": "1024",
"startColor": "#{}",
"width": "1024"
})
item "top right to bottom left ":
prompt("Enter a hex value")
prompt("Enter another hex value")
rawAction("com.sindresorhus.Actions.CreateGradientColorImageIntent", {
"AppIntentDescriptor": "",
"direction": "diagonalTopRightToBottomLeft",
"endColor": "#{}",
"height": "1024",
"startColor": "#{}",
"width": "1024"
})
}
prompt("Enter the name of an SF symbol")
prompt("Enter a third hex value ")
rawAction("com.sindresorhus.Actions.SymbolImageIntent", {
"AppIntentDescriptor": "",
"color": "#{}",
"symbolName": "{}"
})
const OverlaidImage = customImageOverlay(MenuResult, SFSymbolImage)
quicklook(OverlaidImage)
savePhoto(OverlaidImage)
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от oliveranimates7
Вам также может понравиться
Реклама