# Dots are coming when i draw line through mouse

**URL:** <https://forum.kirupa.com/t/dots-are-coming-when-i-draw-line-through-mouse/320507>\
**Category:** Uncategorized\
**Created:** [March 25, 2011, 11:37am UTC](https://forum.kirupa.com/t/dots-are-coming-when-i-draw-line-through-mouse/320507 "2011-03-25T11:37:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbmasoft](https://avatars.discourse-cdn.com/v4/letter/f/c57346/32.png) [@fbmasoft](https://forum.kirupa.com/u/fbmasoft)\
**Post date:** [March 25, 2011, 11:37am UTC](https://forum.kirupa.com/t/dots-are-coming-when-i-draw-line-through-mouse/320507/1 "2011-03-25T11:37:44Z")

</div>

hi friends i am having an issue plz help me out…  
i m making sketch pad in as3 and i have got smoothness issue when i draw a curve but thank god its resolved but now i am facing serious issue which is “ **dots are coming when i draw line through mouse movement and make alpha 0.5 or less** ” these dots are coming with mouse speed variation, i am sending u the code which em using for smooth line

lineLayer.graphics.lineStyle(brushsize, lineColor, 0.1);  
lineLayer.graphics.beginFill(lineColor);

```
lineLayer.graphics.moveTo(lastSmoothedMouseX + L0Cos0, lastSmoothedMouseY + L0Sin0);
lineLayer.graphics.curveTo(controlX1,controlY1,smo othedMouseX + L1Cos1, smoothedMouseY + L1Sin1);
lineLayer.graphics.lineTo(smoothedMouseX - L1Cos1, smoothedMouseY - L1Sin1);
lineLayer.graphics.curveTo(controlX2, controlY2, lastSmoothedMouseX - L0Cos0, lastSmoothedMouseY - L0Sin0);
lineLayer.graphics.lineTo(lastSmoothedMouseX + L0Cos0, lastSmoothedMouseY + L0Sin0);
lineLayer.graphics.endFill();
boardBitmapData.draw(lineLayer);

```

smoothness is perfect but dots are there when i reduce alpha. this is with 0.1 alpha, and when i turned alpha = 1, its works fine.
