So I am building an app on facebook that is meant to be a photoshop clone. The problem I am facing currently is how to make a circle around the cursor that follows it around like in photoshop. Also like in photoshop, I would like the size of the circle to be able to change based on the brush size.
Am I just dreaming here? or is it possible?

here is a link to the app http://apps.facebook.com/fbphotoshop/

Hmm... It is possible but inefficient to draw a circle using JavaScript. What you actually draw is a set of 'div' elements inside another div which has absolute position. You also need to add mouse listener to the absolute position div element in order to follow the mouse position. Not really that efficient in my opinion...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.