Lazy Brush icon
Lazy Brush icon

Lazy Brush

JavaScript library to draw smooth curves and straight lines with your mouse, finger or any pointing device.

Lazy Brush screenshot 1

Cost / License

  • Free
  • Open Source (MIT)

Platforms

  • Self-Hosted
  • JavaScript
  • Typescript

Features

  1.  Smooth lines

Lazy Brush News & Activities

Highlights All activities

Recent activities

No activities found.

Lazy Brush information

AlternativeTo Categories

DevelopmentPhotos & Graphics

GitHub repository

  •  1,380 Stars
  •  37 Forks
  •  5 Open Issues
  •   Updated  
View on GitHub
Lazy Brush was added to AlternativeTo by Paul on and this page was last updated .
No comments or reviews, maybe you want to be first?

Official Links

What is Lazy Brush?

JavaScript library to draw smooth curves and straight lines with your mouse, finger or any pointing device.

This library provides the math required to implement a "lazy brush". It takes a radius and the {x,y} coordinates of a mouse/pointer and calculates the position of the brush.

The brush will only move when the pointer is outside the "lazy area" of the brush. With this technique it's possible to freely draw smooth lines and curves with just a mouse or finger.

How it works

When the position of the pointer is updated, the distance to the brush is calculated. If this distance is larger than the defined radius, the brush will be moved by distance - radius pixels in the direction where the pointer is.