Отсканируй на iPhone, чтобы установить
It makes patterns with different intensities
Что нового
Версия 1.0
First release
Что делает
Действий: 30-
CommentThis list is for the intensity
-
List
-
Get Item from List
-
If
-
Repeat
-
Random Number
-
Random Number
-
Random Colorcom.sindresorhus.Actions
-
Create Color Imagecom.sindresorhus.Actions
-
Combine Images
-
Quick Look
-
If
-
If
-
Repeat
-
Random Colorcom.sindresorhus.Actions
-
Random Colorcom.sindresorhus.Actions
-
Create Gradient Color Imagecom.sindresorhus.Actions
-
Combine Images
-
Quick Look
-
If
-
If
-
Repeat
-
Random Colorcom.sindresorhus.Actions
-
Random Colorcom.sindresorhus.Actions
-
Create Gradient Color Imagecom.sindresorhus.Actions
-
Random Textcom.sindresorhus.Actions
-
Overlay Text
-
Combine Images
-
Quick Look
-
If
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#define color teal
#define glyph lightningBolt
/*
This list is for the intensity
*/
const List = list("1", "2", "3")
const ItemFromList = getLastItem(List)
const RepeatResults = if ItemFromList == "1" {
const RepeatResults1 = repeat _ for 4 {
const RandomNumber1 = randomNumber(1, 512)
const RandomNumber = randomNumber(1, 512)
rawAction("com.sindresorhus.Actions.RandomColorIntent", {
"AppIntentDescriptor": ""
})
rawAction("com.sindresorhus.Actions.CreateColorImageIntent", {
"AppIntentDescriptor": "",
"color": "{}",
"height": "RandomNumber",
"width": "RandomNumber1"
})
}
rawAction("is.workflow.actions.image.combine", {
"WFImageCombineMode": "In a Grid",
"WFInput": "RepeatResults"
})
quicklook(CombinedImage)
} else {
const RepeatResults2 = if ItemFromList == "2" {
repeat _ for 4 {
rawAction("com.sindresorhus.Actions.RandomColorIntent", {
"AppIntentDescriptor": ""
})
rawAction("com.sindresorhus.Actions.RandomColorIntent", {
"AppIntentDescriptor": ""
})
rawAction("com.sindresorhus.Actions.CreateGradientColorImageIntent", {
"AppIntentDescriptor": "",
"direction": "Ask",
"endColor": "{}",
"height": "128",
"startColor": "{}",
"width": "128"
})
}
rawAction("is.workflow.actions.image.combine", {
"WFImageCombineMode": "In a Grid",
"WFInput": "RepeatResults1"
})
quicklook(CombinedImage1)
} else {
if ItemFromList == "3" {
repeat _ for 4 {
rawAction("com.sindresorhus.Actions.RandomColorIntent", {
"AppIntentDescriptor": ""
})
rawAction("com.sindresorhus.Actions.RandomColorIntent", {
"AppIntentDescriptor": ""
})
rawAction("com.sindresorhus.Actions.CreateGradientColorImageIntent", {
"AppIntentDescriptor": "",
"endColor": "{}",
"height": "128",
"startColor": "{}",
"width": "128"
})
rawAction("com.sindresorhus.Actions.RandomTextIntent", {
"AppIntentDescriptor": ""
})
rawAction("is.workflow.actions.overlaytext", {
"WFImage": "GradientColorImage",
"WFText": "{}"
})
}
rawAction("is.workflow.actions.image.combine", {
"WFImageCombineMode": "In a Grid",
"WFInput": "RepeatResults2"
})
quicklook(CombinedImage2)
} else {
}
}
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от oliveranimates7
Вам также может понравиться
Реклама