Skip to content

Instantly share code, notes, and snippets.

@9214
Last active March 30, 2024 21:23
Show Gist options
  • Save 9214/dfa15d37342065dbf368eae35abcdc37 to your computer and use it in GitHub Desktop.
Save 9214/dfa15d37342065dbf368eae35abcdc37 to your computer and use it in GitHub Desktop.
Puny GUI Puppy Finder in Red.
Red [
Title: "Puny GUI Puppy Finder, Red version"
Author: @9214
Date: 26-Apr-2020
Link: https://ahungry.com/blog/2020-04-24-Puny-GUI-Puppy-Finder.html
]
view [
title "Puppy Finder"
below center
button "Find a new dog" [
puppy/image: load to url! select
load https://dog.ceo/api/breeds/image/random
'message
]
text "Click the button to see a new dog.^/Click the dog to close the app."
puppy: image 300x300 [unview]
]
@9214
Copy link
Author

9214 commented Apr 26, 2020

The above script features:

  • View graphical engine;
  • Visual Interface Dialect (VID);
  • JSON codec;
  • JPEG codec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment