summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/KreisBoegen.inc
diff options
context:
space:
mode:
Diffstat (limited to 'Master/Reference Architectures and Patterns/hjp5/examples/KreisBoegen.inc')
-rw-r--r--Master/Reference Architectures and Patterns/hjp5/examples/KreisBoegen.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/Master/Reference Architectures and Patterns/hjp5/examples/KreisBoegen.inc b/Master/Reference Architectures and Patterns/hjp5/examples/KreisBoegen.inc
new file mode 100644
index 0000000..c09ce1f
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/hjp5/examples/KreisBoegen.inc
@@ -0,0 +1,13 @@
+/* KreisBoegen.inc */
+
+public void paint(Graphics g)
+{
+ int line = 4;
+ int gap = 3;
+ int angle = 0;
+
+ while (angle < 360) {
+ g.drawArc(20,40,250,140,angle,line);
+ angle += gap + line;
+ }
+} \ No newline at end of file