Category
Font Utilities
Function
Smooths text for on-screen display..
Syntax
caption = LaTeXText(object, alias_factor, background);
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| object | field | none | text object |
alias_factor |
scalar | 0.5 | antialias factor (0-1) |
| background | vector | [0 ,0, 0] | background colour |
Outputs
| Name | Type | Description |
|---|---|---|
output |
color field | antialiased object |
Functional Details
The caption produced is aligned in parallel with the screen.
| object | input text object. At present this must be a LaTeX formatted text object. Standard opendx text objects have bizarre boundaries which result in surface defects when anti-aliased using this macro - this is either a bug or a feature! |
alias_factor |
the antialias factor between 0.0 and 1.0. If this factor is x then a single pixel line of colour (1-x)b+(x)f is drawn around the text character boundaries, simulating antialiasing. |
background |
background colour as a vector. |
Notes:
Components
Creates "positions," "connections," and "colors" components.
Example Visual Programs
Many example visual programs use TextAlias, including:
Example.net
See Also