ronin/scripts/modes/mode.paint.js
2016-12-18 21:23:53 -07:00

21 lines
332 B
JavaScript

function Mode_Paint()
{
Mode.call(this);
this.name = "Paint";
this.mouse_down = function(event)
{
ronin.brush.draw_start(event); ronin.brush.draw(event);
}
this.mouse_move = function(event)
{
ronin.brush.draw(event);
}
this.mouse_up = function(event)
{
ronin.brush.draw_stop(event);
}
}