ShareShortcuts

Paint

Pixel art of any length and color!

xalaeth
Dupliquer « Paint »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que xalaeth soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
54K
Enregistré
2
Actions
33
Catégorie
Fun
Version
1.3
Langue
EN

Pixel art of any length and color! Randomizer included!

Nouveautés

Version 1.3

Not really sure what happened or what I fixed, but it’s better.

Historique des versions
1.3 15 déc. 2020

Not really sure what happened or what I fixed, but it’s better.

1.2 13 déc. 2020

Improved randomizer

1.1 13 déc. 2020

Ignore me. I slipped up on the randomiser

1.0 13 déc. 2020

First release

Ce qu’il fait

33 actions
  1. Calculate
  2. Ask for Input
    What will be the length of your paint? No maximum, I think
  3. Calculate
  4. Set Variable
    Repeat#
  5. Repeat
  6. List
  7. If
  8. List
  9. Get Item from List
  10. Add to Variable
  11. If
  12. Choose from List
  13. If
  14. Add to Variable
  15. If
  16. Calculate
  17. Set Variable
    Randomiser
  18. If
  19. List
  20. Get Item from List
  21. Add to Variable
  22. If
  23. Combine Text
  24. Show Alert
  25. Choose from Menu
    Do you want to share or save your painting?
  26. Choose from Menu
    Share
  27. Share
  28. Choose from Menu
    Save
  29. Show Notification
    Take a screenshot!
  30. Show Alert
  31. Choose from Menu
    Exit
  32. Choose from Menu
    Do it again!!
  33. Run Shortcut
    Paint

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#include 'actions/sharing'
#define color taupe
#define glyph picture

const ProvidedInput = prompt("What will be the length of your paint? No maximum, I think", "Number")
@Repeat = ProvidedInput * 19

repeat _ for @Repeat {
	const List1 = list("🟥", "🟧", "🟨", "🟩", "🟦", "🟪", "⬛️", "⬜️", "🟫", "🔳 Randomiser 🔳")
	if @Randomiser == 1 {
		const List = list("🟥", "🟧", "🟨", "🟩", "🟦", "🟪", "⬛️", "⬜️", "🟫")
		getListItems(List, 1, 9)
		@Painting
	} else {
		const ChosenItem = chooseFromList(List1)
		if ChosenItem != "🔳 Randomiser 🔳" {
			@Painting = ChosenItem
		} else {
			@Randomiser = 1 + 0
		}
	}
}

if @Randomiser == 1 {
	const List2 = list("🟥", "🟧", "🟨", "🟩", "🟦", "🟪", "⬛️", "⬜️", "🟫")
	getListItems(List2, 0, 0)
	@Painting
} else {
}
const CombinedText = joinText(@Painting, " ")
confirm(CombinedText)

menu "Do you want to share or save your painting?" {
item "Share":
	share(CombinedText)
item "Save":
	showNotification("Take a screenshot!")
	confirm(CombinedText)
item "Exit":
item "Do it again!!":
	runSelf()
}
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de xalaeth

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité