Class ColorAtPoint
java.lang.Object
com.marginallyclever.nodegraphcore.Node
com.marginallyclever.donatello.nodes.images.ColorAtPoint
public class ColorAtPoint
extends com.marginallyclever.nodegraphcore.Node
Calculates the color of a
The sampling is evenly weighted - that is to say the convolution matrix is all 1s.
BufferedImage
at a given point. Does nothing if the requested point is out of bounds.
The sampling area is a square 1+samplesize
pixels on each side.The sampling is evenly weighted - that is to say the convolution matrix is all 1s.
- Since:
- 2022-02-23
- Author:
- Dan Royer
-
Field Summary
Fields inherited from class com.marginallyclever.nodegraphcore.Node
TITLE_HEIGHT
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.marginallyclever.nodegraphcore.Node
countReceivingConnections, fromJSON, getComplete, getDownstreamNodes, getInPosition, getLabel, getName, getNumPorts, getOutPosition, getPort, getPort, getPortIndex, getPorts, getRectangle, getUniqueID, isDirty, moveRelative, reset, setComplete, setInputsClean, setLabel, setPosition, setRectangle, setUniqueID, toJSON, toString, updateBounds
-
Constructor Details
-
ColorAtPoint
public ColorAtPoint()Constructor for subclasses to call.
-
-
Method Details
-
update
public void update()- Specified by:
update
in classcom.marginallyclever.nodegraphcore.Node
-