diff options
Diffstat (limited to 'webcam/webcam/effects/pixel/HalftoneDot.as')
| -rwxr-xr-x | webcam/webcam/effects/pixel/HalftoneDot.as | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/webcam/webcam/effects/pixel/HalftoneDot.as b/webcam/webcam/effects/pixel/HalftoneDot.as new file mode 100755 index 0000000..4f4fb40 --- /dev/null +++ b/webcam/webcam/effects/pixel/HalftoneDot.as @@ -0,0 +1,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);
+ }
+ }
+}
\ No newline at end of file |
