#include "point.h"

// default constructor. this is needed when we create an array of objects.
Point::Point() {
}

// constructor that takes in x, y and a color
Point::Point(int x, int y, unsigned char c) {
	xp = x;
	yp = y;
	col = c;
}

// destructor
Point::~Point() { 
}

// taking in the array and drawing a point, based on its coordinates
void Point::draw(unsigned char img[]) {
	img[yp*WIDTH+xp] = col;
}
