syndicate-2017/imperative/examples/gui
Tony Garnock-Jones bc5c26ba1d Support transformations (e.g. rotation) in the scene prelude 2019-04-25 12:58:30 +01:00
..
layout GUI example 2018-05-04 16:57:22 +01:00
README.md GUI example 2018-05-04 16:57:22 +01:00
gui.rkt Support transformations (e.g. rotation) in the scene prelude 2019-04-25 12:58:30 +01:00
hsv.rkt GUI example 2018-05-04 16:57:22 +01:00
oakura-beach-20081225.jpg GUI example 2018-05-04 16:57:22 +01:00
syndicate-gui-snapshot.png GUI example 2018-05-04 16:57:22 +01:00

README.md

Simple GUI experiments using Syndicate

This directory contains UI experiments using Syndicate and its OpenGL 2D support.

Files:

  • gui.rkt: Main entry point. Run racket gui.rkt to run the demo.

  • layout/: A simple widget layout engine, loosely inspired by TeX's boxes-and-glue model.

    • sizing.rkt: TeX-like "dimensions", including "fills"

    • layout.rkt: Uses "dimensions" to specify "table layouts", which are then realized in terms of specified rectangle coordinates

  • hsv.rkt: Utility for converting HSV colors to RGB.

Screenshot:

Syndicate GUI screenshot