getColorAt (COMPUTE ROBUST)

A robust version of getColorAt(). See here for basic version. See here for a robust version using a hidden-canvas trick. The selected circle is filled with getColorAt(...) on mouse movement. Click the mouse to toggle between a linear and radial gradient. Hold shift to change the highlight location. Hold control to move the circle around.
  • Allows stops to be in random order
  • Allows for unspecified offsets (notice red and green)
  • Allows a radial highlight 
  • Input color: Color
  • Input p: Point or number 
  • Output Color

Source


No comments:

Post a Comment