namespace Plot { export class Curve { formula : ( x ) => number ; colour : string ; constructor ( formula , colour ? ) { this . formula = formula ; this . colour = colour ; if ( colour == null || colour == undefined ) { this . colour = "hsl(" + ~ ~ ( Math . random ( ) * 360 ) + ",99%,60%)" ; } } } }