Skip to main content

vScriptValFromPixel

Return a ScriptVal with the RGB color from pixels in an image

Core / GradientGradient
vScriptValFromPixel node

Parameters​

ParameterTypeDefaultDescription
InputImage—Image to sample colours from.
Sampling ModeDropdownPixelHow pixels are sampled: Pixel (a single point), Scanline Horizontal/Vertical (evenly spaced samples along a line), or Rectangle (a 2D grid of samples within an area).
PixelPoint—Position to sample. Pixel mode only.
SamplesInteger16.0Number of colour samples generated. Scanline modes only.
CenterPoint—Center of the sampling area. Rectangle mode only.
+5 more parameters
ParameterTypeDefaultDescription
WidthFloat1.0Width of the sampling rectangle, as a fraction of frame width. Rectangle mode only.
HeightFloat1.0Height of the sampling rectangle, as a fraction of frame height. Rectangle mode only.
Horizontal SamplesInteger16.0Number of sample columns across the rectangle. Rectangle mode only.
Vertical SamplesInteger16.0Number of sample rows across the rectangle. Rectangle mode only.
Show InputInteger0.0Reveals the wire for the Input connection in the Flow view.