netBrush is a simple network based paint program.
This means it allows multiple people to draw on the same canvas at the same time. The feature set of netBrush includes a variable sized canvas and paintbrush and airbrush tools, changing brush size, hardness, color, opacity, etc. is also possible. You can also record and play back events send to the server as well as manipulate them, for example to scale up an image.
netBrush is based on SDL and doesn't use any external widget libraries, so it should be reasonably portable. In addition to the base SDL library netBrush also uses scons, SDL_net and SDL_image.
License: free
Requirements: SDL, SDL_image, SDL_net, libpng, scons
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| no | yes | yes | no | yes | yes | yes |
Submitted by grumbel on 2006-10-29.

brushmask.cpp, point.hpp
#ifndef M_PI
#define M_PI 3.14159265359
#endif
alpha_picker.hpp, client_state.hpp, drawing_context.hpp
class Color; -> struct Color;
SDL_tty.h
#ifndef __GNUC__
# define __attribute__(x) /*NOTHING*/
#endif
server.cpp, client_connection.cpp
#include ctime
client_connection.cpp
while (access(fname.c_str(), F_OK) == 0) -> access and F_OK are not standard C, a standard way to check for the existence of a file is something like:
bool does_file_exist(const string& filename) {
ifstream test(filename.c_str(), ifstream::in);
test.close();
if(test.fail())
return false;
else
return true;
}
brushmask.cpp
rint isn't standard, I guess you'd have to write your own rounding function
SDL_tty.c
vsnprintf isn't standard
SDL_tty.c
can't work this out right now:
SDL_tty.c(128) : error C2143: syntax error : missing ';' before 'type'
SDL_tty.c(129) : error C2065: 'str' : undeclared identifier
controller.cpp
in Controller::update_mouse_cursor() some dodgy stuff with declaring y both inside and outside of for loops creates lots of warnings
also libpng is an unmentioned dependency
http://pingus.seul.org/~grumbel/tmp/netbrush-2006-11-01-1.zip
On Linux just type 'scons' and be done with it, pretty much every distro out there has all the required libraries.
http://developer.berlios.de/projects/flexlay/
as homepage