Skip to Content
Learn Red ? Fundamentals of Red
book

Learn Red ? Fundamentals of Red

by Ivo Balbaert
May 2018
Beginner content levelBeginner
252 pages
6h 19m
English
Packt Publishing
Content preview from Learn Red ? Fundamentals of Red

Layout commands

Red works with the normal coordinate system, with the origin 0x0 in the top-left corner:

A point with coordinates (n, m) is noted as nxm. Such a pair! value can also be used in the face/offset property, which describes the position of the top-left corner of the face from the origin, in this case n pixels from the left, and m pixels down. It can also be used to move a face to a new position:

;-- see Chapter09/offset.red:t: text "I will not stay here"button "Move text" [t/offset: 20x30] 

By default, Red uses a kind of flow layout represented with the across word. Faces are placed from left to right until the screen line is full, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

How I Built a Personal Board of Directors With GenAI

How I Built a Personal Board of Directors With GenAI

Vipin Gupta
How to Become a Game-Changing Leader

How to Become a Game-Changing Leader

Douglas A. Ready, Alan Mulally
Why AI Demands a New Breed of Leaders

Why AI Demands a New Breed of Leaders

Faisal Hoque, Thomas Davenport, Erik Nelson

Publisher Resources

ISBN: 9781789130706Supplemental Content