putColor method

bool putColor(
  1. int x,
  2. int y,
  3. int color
)

Implementation

bool putColor( int x, int y, int color ){
	if( (x < 0) || (x >= _width) || (y < 0) || (y >= _height) ){
		return false;
	}
	_image![y * _offset + x] = color;
	if( _gWorldPut ){
		if( color == _color ){
			gWorldPut( this, x, y );
		} else {
			gWorldPutColor( this, x, y, color );
		}
	}
	return true;
}