Просмотр
This shortcut is ideal if you have to make a difficult decision and can’t make up your mind – let the eight ball decide for you!
Что нового
Версия 1.1
Improved style
Что делает
Действий: 6-
List
-
Get Item from List
-
Text
-
Make Rich Text from HTML
-
Make Image from Rich Text
-
Show Result
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/text'
#define color darkgray
#define glyph circle
const List = list("It is<br>certain", "It is<br>decidedly<br>so", "Without<br>a doubt", "Yes<br>definitely", "You may<br>rely on it", "As I<br>see it,<br>yes", "Most<br>likely", "Outlook<br>good ", "Yes", "Signs point<br>to yes", "Reply hazy,<br>try again", "Ask<br>again<br>later", "Better<br>not tell<br>you now", "Cannot<br>predict<br>now", "Concentrate<br>and ask<br>again", "Don't<br>count<br>on it", "My<br>reply<br>is no", "My sources<br>say no", "Outlook<br>not so<br>good", "Very<br>doubtful")
getFirstItem(List)
const Text = "<html>\n<head>\n<style>\nbody { background: #1826C8;\nbackground: radial-gradient(circle, #314899 25%, rgba(6, 6, 48, 1) 100%); color: white; height: 100%; display: flex; justify-content: center; align-items: center; font-family: -apple-system; }\nh2 { text-align: center; font-weight: 600; text-transform: uppercase; font-size: 10vw; padding: 2rem; text-shadow: 5px 5px 0px rgba(0,0,0,0.5);}\n</style>\n</head>\n<body>\n<h2>{}</h2>\n</body>\n</html>"
const RichTextFromHTML = getRichTextFromHTML(Text)
makeImageFromRichText(RichTextFromHTML, "1024", "768")
show()
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от cdmoro
Вам также может понравиться
Реклама