Skip to content
main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
tmp
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Brushstroke

Paint your screen with your phone! Check it out here

Open Brushstroke on your desktop or laptop, and your phone. Point your phone at the center of the screen, and enter the room code from your desktop. Now you are connected and ready to paint!

Protip: Use the tune button to better calibrate Brushstroke to your devices.

Features

  • Live connection between screen and phone using WebSockets with Action Cable
  • Calibrate to your phone, display size, and distance with only four taps
  • Smooth lines using quadratic curves
  • Save the images you create

Development & Deployment

Prerequisite: set up Postgres.

  1. Clone this repository:

     $ git clone
    
  2. Install dependencies:

     $ cd castaway
    
     $ bundle install
    
     $ yarn install
    
  3. Set up database:

     $ rails db:setup
    

    Or when deploying to Heroku:

     $ rails db:migrate
    
     $ rails db:seed
    
  4. Run server:

     $ rails server
    

Todo

  • Periodically remove old rooms (Heroku Scheduler)
  • Add support for multiple painters in one room

About

🖌️ Paint with your phone! Gyroscope + WebSockets + Canvas.

Resources

Releases

No releases published

Packages

No packages published