getColorAt (COMPUTE BASIC)

A dumbed down version of getColorAt(). See here for the robust analog. See here for a 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.
  • Assumes stops are in sorted order
  • Assumes offsets are all specified
  • Assumes no highlight 
  • Input color: Color
  • Input p: Point or number 
  • Output Color

Source


No comments:

Post a Comment