From 24e937900d5b49b7b5a80f0eaec04e660922e2cd Mon Sep 17 00:00:00 2001 From: Victor Date: Sun, 2 Mar 2014 20:45:27 +0200 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=9B=D0=A02=20=D1=81=20=D0=BF=D1=80=D1=8F?= =?UTF-8?q?=D0=BC=D0=BE=D1=83=D0=B3=D0=BE=D0=BB=D1=8C=D0=BD=D1=8B=D0=BC=20?= =?UTF-8?q?=D0=BE=D1=82=D1=81=D0=B5=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gm/LR_2.java | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/gm/LR_2.java diff --git a/src/gm/LR_2.java b/src/gm/LR_2.java new file mode 100644 index 0000000..13c87e2 --- /dev/null +++ b/src/gm/LR_2.java @@ -0,0 +1,39 @@ +package gm; + +import com.annimon.graphics.Application; +import com.annimon.graphics.Clip; +import com.annimon.graphics.GraphicsExt; +import java.awt.Color; + +/** + * Вариант 11 (тут 2) + * @author aNNiMON + */ +public class LR_2 extends Application { + + public static void main(String[] args) { + new LR_2(); + } + + private Clip clip; + + public LR_2() { + super(640, 480); + setTitle("LR_2 v2"); + + clip = new Clip(1, 2, 8, 3); + } + + @Override + protected void paint(GraphicsExt g) { + g.setColor(Color.RED); + g.rect(clip); + g.setColor(Color.BLACK); + g.setClip(clip); + + g.line(0, 0, 10, 7); + g.line(4, 4, 8, 10); + g.line(2, 1, 12, 3); + + } +}