My old project for strange attractors
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

22 lines
450 B

#ifndef CANVAS_HPP
#define CANVAS_HPP
class Canvas {
protected:
unsigned int dimension;
Canvas(const unsigned int dimension) : dimension(dimension) {};
public:
unsigned int getDimension() const { return dimension; };
virtual ~Canvas() {};
virtual void clear() = 0;
virtual void plot(const double* normalizedPosition, const double* normalizedColor) = 0;
virtual void output_file(const char* filename) const = 0;
};
#endif // CANVAS_HPP