Beispiel #1
0
void fill_t::draw(point_t p,float width,float height){
	if(getFillMode()==1){
		solid_fill(p,width,height);
	}
	else{
		checkerboard_fill(p,width,height);
	}
}
	void main()
	{
		switch (int(brush_data1.x))
		{
		default:
		case 0: solid_fill(); break;
		case 1: linear_gradient_fill(); break;
		case 2: radial_gradient_fill(); break;
		case 3: image_fill(); break;
		}
	}
Beispiel #3
0
PixelSlice PixelSlice::black(int w, int h)
{
    PixelSlice p = make(w, h);
    solid_fill(p, 0);
    return p;
}