Short Courses on Computer Graphics, Image Processing and Computer Vision |
Let me know what you think |
Course 2DJava: 2D-Computer Graphics with Java
|
layout: thanks to Stefan Münz |
deutsch | english |
C1: Intro, erste GraphikbefehleSchreiben Sie ein erstes zweckloses Graphikprogramm. Es enthält den Hello-World-Text, es erfragt die dehnbare Fenstergröße, schreibt zwei Linien, ein Rechteck, eine Ellipse. Es zieht sternförmig dicke Linien mit Zufallsfarben und speichert die Endpunkte in einem Polygonarray, das am Ende zackenförmig rot gezeichnet wird. |
C1: Intro, some simple graphic commandsWrite Your first useless Java-program that demonstrates some simple graphic commands. It demonstrates a Hello-World-text, it evaluates the variable window size, draws two lines, a rectangle and an ellipse. It draws thick radial lines using random colors. Finally it stores the end points of the lines in form of a polygon array which forms a final red splash. It redraws everything in a different way from scratch when you change the window size by dragging one of its borders. |
Link | Bauanleitung | |||
Bauanleitung Druckversion |
C2: Draw, ein MalprogrammDas Programm besteht aus 6 aufeinander aufbauenden Versionen V1 - V6. |
C2: Draw, a scribble programThis is a scribble program in 5 increasingly complex versions V1 - V6. |
Link | Bauanleitung | |||
Bauanleitung Druckversion |
C3: XML, speichern und lesen von Polygonen in drei FormatenDie von der Mausbewegung erzeugten Vertices werden zunächst in einem dynamischen Array gesammelt. Das gesamte Polygon kann anschließend dauerhaft unter beliebigem Namen auf die Platte gespeichert und von dort gelesen werden. Sie werden das Polygon im Textformat und in den beiden XML-Formaten Vector Markup Language VML und Scalable Vector Graphics SVG speichern, die Ihr Browser lesen und interpretieren kann. (VML: Internet-Explorer ab Version 5.0) (SVG: Adobe Plugin für IE, Netscape und Opera. Siehe: www.adobe.com/svg/viewer/install/main.htm). |
C3: XML, store and read polygons in three different formatsAt first, the vertices generated by the mouse movements are collected in a dynamic array. The complete polygon can be stored to and reloaded from the hard disk under an arbitrary file name. You will store it in text format and in the XML-formats Vector Markup Language VML and Scalable Vector Graphics SVG that your browser can read and interpret. (VML: Internet-Explorer Version 5.0 & higher) (SVG: Adobe Plugin for IE, Netscape und Opera. See: www.adobe.com/svg/viewer/install/main.htm ). |
Link | Bauanleitung | |||
Bauanleitung Druckversion |
C4: Anim, eine AnimationMalprogramm mit Daueranimation. Das offene Polygon dreht und schrumpft um seinen Schwerpunkt und fängt dann an, rhytmisch zu pumpen in Schrittweiten von 1 Grad und 5% Zoom. Geschwindigkeit und Umkehrpunkte sind im Code frei regelbar. |
C4: Anim, an endless animationScribble program followed by an endless animation. |
Link | Bauanleitung | |||
Bauanleitung Druckversion |
top of page: |