ShareShortcuts

Paint

Pixel art of any length and color!

xalaeth
„Paint“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit xalaeth die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
54K
Gesichert
2
Aktionen
33
Kategorie
Fun
Version
1.3
Sprache
EN

Pixel art of any length and color! Randomizer included!

Neue Funktionen

Version 1.3

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

Versionsverlauf
1.3 15. Dez 2020

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

1.2 13. Dez 2020

Improved randomizer

1.1 13. Dez 2020

Ignore me. I slipped up on the randomiser

1.0 13. Dez 2020

First release

Was er macht

33 Aktionen
  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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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()
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von xalaeth

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung