Rebol Programming/edge-size?

From Wikibooks, open books for an open world
< Rebol Programming
Jump to navigation Jump to search

USAGE:[edit | edit source]

EDGE-SIZE? face 

DESCRIPTION:[edit | edit source]

Return total size of face edge (both sides), even if missing edge.

EDGE-SIZE? is a function value.

ARGUMENTS[edit | edit source]

  • face -- (Type: object)

SOURCE CODE[edit | edit source]

edge-size?: func [
    {Return total size of face edge (both sides), even if missing edge.} 
    face [object!]
][
    either face/edge [face/edge/size * 2] [0x0]
]