Difference between revisions of "Types:Rect"

From Neos Wiki
Jump to navigation Jump to search
m (ProbablePrime moved page Category:Types:Rect to Types:Rect)
m
 
Line 1: Line 1:
 +
{| class="wikitable"
 +
|-
 +
| Color
 +
| Type
 +
|-
 +
| style="background-color:{{Rect-color}}" |
 +
| Rect
 +
|}
 +
 +
[[Category:Types]]
 
A '''Rect''' represents a 2-dimensional rectangle. It consists of a starting x and y coordinate, and a width and length. Most, if not all, components will have these as proportions of the total bounds, between 0 and 1. For example, for the [[SpriteProvider (Component)|SpriteProvider]] component, the Rect property bounds the sprite to be rendered, with the values being proportions of the total width and height of the sprite image.
 
A '''Rect''' represents a 2-dimensional rectangle. It consists of a starting x and y coordinate, and a width and length. Most, if not all, components will have these as proportions of the total bounds, between 0 and 1. For example, for the [[SpriteProvider (Component)|SpriteProvider]] component, the Rect property bounds the sprite to be rendered, with the values being proportions of the total width and height of the sprite image.
  
 
For dynamic variables and other components requiring a type, the type for Rect is <tt>BaseX.Rect</tt>.
 
For dynamic variables and other components requiring a type, the type for Rect is <tt>BaseX.Rect</tt>.
 
[[Category:Types]]
 

Latest revision as of 05:52, 8 May 2022

Color Type
Rect

A Rect represents a 2-dimensional rectangle. It consists of a starting x and y coordinate, and a width and length. Most, if not all, components will have these as proportions of the total bounds, between 0 and 1. For example, for the SpriteProvider component, the Rect property bounds the sprite to be rendered, with the values being proportions of the total width and height of the sprite image.

For dynamic variables and other components requiring a type, the type for Rect is BaseX.Rect.