summaryrefslogtreecommitdiff
path: root/webcam/webcam/effects/pixel/HalftoneDot.as
blob: 3e975785874e96fc1361fdcd287af180da282b85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
 * Neave Webcam // Halftone Dot
 * 
 * Copyright (C) 2008 Paul Neave
 * http://www.neave.com/
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation at http://www.gnu.org/licenses/gpl.html
 */

package com.neave.webcam.effects.pixel
{
	import flash.display.*;
	
	final internal class HalftoneDot extends Shape
	{
		/**
		 * Draws a halftone dot shape to be used with the halftone effect
		 * 
		 * @param	x		The position of the dot on the x-axis
		 * @param	y		The position of the dot on the y-axis
		 * @param	radius	The radius of the dot
		 */
		public function HalftoneDot(x:Number = 0, y:Number = 0, radius:Number = 1)
		{
			this.x = x;
			this.y = y;
			graphics.beginFill(0x000000);
			graphics.drawCircle(0, 0, radius);
		}
	}
}