Class AffineCircleNode
A node that allows the user to define an affine circle of colors.
[Version(2, 1, 0)]
public class AffineCircleNode : Node<Color, Color>
- Inheritance
-
AffineCircleNode
- Inherited Members
-
Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.ToString()Object.hideFlags
Remarks
The three specified colors define a triangle ABC, which are mapped to the equilateral triangle on the unit circle PQR on the XY plane. The affine mapping from PQR to ABC is applied to a circle at the origin, with the specified radius and offset. This results in an ellipse in the color cube, which is where the colors are sampled from.
Fields
- count
How many colors to produce.
- offset
The angular offset, as a fraction between 0 and 1. 0.5 correspond to 180 degrees around the circle.
- radius
The radius of the affine circle. When set to 1, the colors will be on the transformed circle.
Methods
- Execute(IEnumerable<Color>)
Calculates a list of output from a given list of input.
- Recompute()
Recomputes a nodes internal values that are independent of the inputs.