blob: 9808615cec711cf4ab57788aa71c5eaa72dfb8ac [file] [log] [blame]
package drawer
// START OMIT
import "image"
// Function represent a drawable mathematical function.
type Function interface {
Eval(float64) float64
}
// Draw draws an image showing a rendering of the passed Function.
func Draw(f Function) image.Image {
// END OMIT
return nil
}