ShareShortcuts

Cool Patterns

It makes patterns with different intensities

oliveranimates7
Создать форк «Cool Patterns»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы oliveranimates7 получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
2K
Сохранено
0
Действия
30
Категория
API
Версия
1.0
Язык
EN

It makes patterns with different intensities

Что нового

Версия 1.0

First release

История версий
1.0 6 сен 2026 г.

First release

Что делает

Действий: 30
  1. Comment
    This list is for the intensity
  2. List
  3. Get Item from List
  4. If
  5. Repeat
  6. Random Number
  7. Random Number
  8. Random Color
    com.sindresorhus.Actions
  9. Create Color Image
    com.sindresorhus.Actions
  10. Combine Images
  11. Quick Look
  12. If
  13. If
  14. Repeat
  15. Random Color
    com.sindresorhus.Actions
  16. Random Color
    com.sindresorhus.Actions
  17. Create Gradient Color Image
    com.sindresorhus.Actions
  18. Combine Images
  19. Quick Look
  20. If
  21. If
  22. Repeat
  23. Random Color
    com.sindresorhus.Actions
  24. Random Color
    com.sindresorhus.Actions
  25. Create Gradient Color Image
    com.sindresorhus.Actions
  26. Random Text
    com.sindresorhus.Actions
  27. Overlay Text
  28. Combine Images
  29. Quick Look
  30. 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

См. все

Вам также может понравиться

См. все
Реклама