ProtoFlux:Rect From XY WH: Difference between revisions

From Resonite Wiki
Created a page for the Rect From XYWH node.
 
Updated the suggestion note.
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
The '''Rect From XYWH''' node takes in the <code>X</code> position, <code>Y</code> position, <code>Width</code> of the rect, and <code>height</code> of the rect as a [[Type:float|float]] and returns a [[Type:Rect|rect]] [[Value Type|value]].
The '''Rect From XYWH''' node takes in the <code>X</code> position, <code>Y</code> position, <code>Width</code> of the rect, and <code>height</code> of the rect as a [[Type:float|float]] and returns a [[Type:Rect|rect]] [[Value Type|value]].


{{Note|If you need to split your values from a rect, use the [[ProtoFlux:Rect To XY WH|Rect To XYWH]] node instead.|suggestion}}
{{Note|If you need to split your values from a rect, use the [[ProtoFlux:Rect To XY WH|Rect To XYWH]] node instead.
If you want to create a rect using a min and max value, use the [[ProtoFlux:Rect From Min Max|Rect From Min Max]] node instead.
If you want to create a rect using a position and size value, use the [[ProtoFlux:Rect From Position Size|Rect From Position Size]] node instead.|suggestion}}


== Inputs ==
== Inputs ==

Latest revision as of 10:24, 30 June 2024

Rect From XYWH
X
Rect
Y
Width
Height
Rects

The Rect From XYWH node takes in the X position, Y position, Width of the rect, and height of the rect as a float and returns a rect value.

If you need to split your values from a rect, use the Rect To XYWH node instead.

If you want to create a rect using a min and max value, use the Rect From Min Max node instead. If you want to create a rect using a position and size value, use the Rect From Position Size node instead.

Inputs

X (float)

The X position (top left of the rect)

Y (float)

The Y position (top left of the rect)

Width (float)

The width of the rect.

Height (float)

The height of the rect.

Outputs

Rect (Rect)

The rect value.