TransformerRotation
Lens Studio v3.0+
Description
Rotation types used by TransformBuilder.
Enum Value | Description |
---|---|
TransformerRotation.None |
No rotation |
TransformerRotation.Rotate90 |
Rotates by 90 degrees |
TransformerRotation.Rotate180 |
Rotates by 180 degrees |
TransformerRotation.Rotate270 |
Rotates by 270 degrees |
Examples
var transformer = MachineLearning.createTransformerBuilder()
.setVerticalAlignment(VerticalAlignment.Center)
.setHorizontalAlignment(HorizontalAlignment.Center)
.setRotation(TransformerRotation.Rotate180)
.setFillColor(new vec4(0, 0, 0, 1))
.build();
Still Looking for help?
Visit Support