sotu.dvi



Similar documents
tn_soturon_sjis.dvi

<4D F736F F D B B83578B6594BB2D834A836F815B82D082C88C60202E646F63>

Java演習(6) -- 条件分岐 --

19 3!! (+) (>) (++) (+=) for while 3.1!! (20, 20) (1)(Blocks1.java) import javax.swing.japplet; import java.awt.graphics;

アプレットの作成

r3.dvi

課題


Applet java.lang.object java.awt.component java.awt.container java.awt.panel java.applet.applet

Local variable x y i paint public class Sample extends Applet { public void paint( Graphics gc ) { int x, y;... int i=10 ; while ( i < 100 ) {... i +=


入門Java解答.doc

AWT setcolor, drawstring Java AWT Abstract Window Toolkit Graphics AWT import import java.awt.* ; // AWT Graphics import java.awt.graphics; // AWT Gra

AWT setcolor, drawstring Java AWT Abstract Window Toolkit Graphics AWT import import java.awt.* ; // AWT Graphics import java.awt.graphics; // AWT Gra

p000表紙.eps

2 p.2 2 Java Hello0.class JVM Hello0 java > java Hello0.class Hello World! javac Java JVM java JVM : Java > javac 2> Q Foo.java Java : Q B

Adobe Bridge Bridge Bridge Bridge P10 Bridge Finder 2

r6.dvi


Safari AppletViewer Web HTML Netscape Web Web 15-1 Applet Web Applet init Web paint Web start Web HTML stop destroy update init Web paint start Web up

KeyListener init addkeylistener addactionlistener addkeylistener addkeylistener( this ); this.addkeylistener( this ); KeyListener public void keytyped

任意の加算プログラム


24 Boid

pp2018-pp4base

橡告改.PDF

BASIC / / BA- SIC Web 1/10 1/10 / / JavaScript

Java演習(9) -- クラスとメソッド --

Java演習(2) -- 簡単なプログラム --

Chapter JDK KeyListener keypressed(keyevent e ) keyreleased(keyevent e ) keytyped(keyevent e ) MouseListener mouseclicked(mouseeven


fiš„v5.dvi

Processingをはじめよう

2 p.2 2 Java Hello0.class JVM Hello0 java > java Hello0.class Hello World! javac Java JVM java JVM : Java > javac 2> Q Foo.java Java : Q B


Java演習(4) -- 変数と型 --

<4D F736F F D20566F F6E658C6791D FE382C582CC4A D834F E F8F4390B394C52E646F63>

10K pdf

Networking Semester 802.3

Java 2 p.2 2 Java Hello0.class JVM Hello0 java > java Hello0.class Hello World! javac Java JVM java JVM : Java > javac 2> Q Foo.java Java : Q 2.

paper.pdf

コンピュータグラフィックス - 第4回 色彩の表現


CONTENTS Web

G-XML

< F2D E E6A7464>

No 1 Flash p3 2 Flash ActionScript p4 3 MS-Access p5 4 p6 5 p7 6 MS-Access p8 7 IllustratorPhotoshop p9 Illustrator 80 8 p10 CSS 9 JavaScript p11 Web

2 1 Web Java Android Java 1.2 6) Java Java 7) 6) Java Java (Swing, JavaFX) (JDBC) 7) OS 1.3 Java Java

はじめに

C:/Temp/magicpot.dvi

. IDE JIVE[1][] Eclipse Java ( 1) Java Platform Debugger Architecture [5] 3. Eclipse GUI JIVE 3.1 Eclipse ( ) 1 JIVE Java [3] IDE c 016 Information Pr

Web

PrintWalker/LXE インストールガイド

rzat10pdf.ps

2 p.2 2 Java Hello0.class JVM Hello0 java > java Hello0.class Hello World! javac Java JVM java JVM : Java > javac 2> Q Foo.java Java : Q B

FUJITSU Network Si-R Si-R Gシリーズ Webユーザーズガイド

untitled

< F2D89BA8EE882C E6A7464>

1 1 2 Unix SVG SVG SVG SVG

r2.dvi

untitled

pp Word Excel PowerPoint Microsoft Word Excel PowerPoint Word Excel PowerPoint a 201

Java 3 p.2 3 Java : boolean Graphics draw3drect fill3drect C int C OK while (1) int boolean switch case C Calendar java.util.calendar A

ユーザーガイド

G-XML EWEB-3K-N064


...h.book

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

< F2D82518E9F8AD CC834F CC8CFC82AB82C68D4C>

07_経営論集2010 小松先生.indd

1 1.1 PC PC PC PC PC workstation PC hardsoft PC PC CPU 1 Gustavb, Wikimedia Commons.

Oracle_for_SAP :29 PM ページ 2 2 3

Chapter 20. [ ] ; [ ] = new [ ] ; Color colors [ ] = new Color[ 20 ]; // 20 Button operations [ ] = new Button[ 10 ]; // 10 colors[ 3 ] = new Color( 1

Chapter 19. init paint actionperformed init if Subroutine Function init paint ( ) { } ( ) void public void init( ) { } init void void public Copyright

IPSJ SIG Technical Report Vol.2012-IS-119 No /3/ Web A Multi-story e-picture Book with the Degree-of-interest Extraction Function

Copyright 2009 Sun Microsystems, Inc Network Circle, Santa Clara, CA U.S.A. All rights reserved. Sun Microsystems, Inc. ( Sun Microsystems

Windows Macintosh 18 Java Windows 21 Java Macintosh

Cosminexus Application Designer操作ガイド

課題

Processing入門マニュアル17

< F2D B825082CC96E291E82E6A7464>

< F2D A839382CC906A2E6A7464>

Java言語 第1回

Microsoft PowerPoint prog1_doc2x.pptx

,,,,., C Java,,.,,.,., ,,.,, i

課題

untitled

4-1. html css html ht tp ht tp html HyperTex t Markup Language: html <meta ht tp - equiv="content-type" content=" tex t /html; charset=utf-

r4.dvi

2 p.2 2 Java > javac Hello0.java Hello0.class JVM Hello0 java > java Hello0.class Hello World! javac Java JVM java JVM : Java > javac 2> Q Foo.j

COOLPIX S01 Aiii vii A 0

22 (266) / Web PF-Web Web Web Web / Web Web PF-Web Web Web Web CGI Web Web 1 Web PF-Web Web Perl C CGI A Pipe/Filter Architecture Based Software Gener

58.pdf

新しいイテレーション型開発

橡Webcamユーザーガイド03.PDF

Processingをはじめよう

0720

高等学校学習指導要領

高等学校学習指導要領

try catch Exception Java try catch try { } catch ( Exception e ) { } e 16-1 try catch 0 try { int x = 0; int y = 10 / x; } catch ( Exception e ) { Sys

Transcription:

2004 3 A Graduation Thesis of College of Engineering, Chubu University A Proposal of Programming Evironment of Visualization for Graphic Designer Ayako Takabatake

1 1 2 3 2.1... 3 2.2 4... 4 2.2.1... 4 2.2.2... 5 2.2.3... 7 2.2.4... 8 3 9 3.1 DBN... 9 3.1.1 DBN... 9 3.1.2 DBN... 10 3.1.3 DBN... 12 3.2 Processing... 13 3.2.1 Java Processing... 13 3.2.2 Processing... 14 3.2.3 Processing... 18 3.3 Adobe Scripting... 19 3.3.1 3 Adobe Scripting... 19 3.3.2 Adobe Scripting... 19 3.3.3 Adobe Scripting... 24 3.4... 24 iii

3.5... 25 4 27 4.1... 28 4.2... 29 4.3... 30 5 33 35 37 iv

2.1... 5 2.2... 5 2.3... 6 2.4... 6 2.5... 8 2.6... 8 3.1 DBN... 10 3.2 DBN 1... 11 3.3 DBN 2... 11 3.4 DBN 3... 11 3.5 Processing... 14 3.6 Processing... 16 3.7 Java... 16 3.8 Processing... 16 3.9 Scripting 1... 20 3.10 Scripting 2... 22 3.11 Scripting 3... 22 4.1... 27 4.2... 28 4.3 1... 30 4.4 2... 31 4.5 3... 31 v

3.1... 13 3.2... 25 4.1... 29 vii

1,,.,.,,.,,. 2, 3 Visualization System., 4,. 4,,. 1

2, 4. 4,,,. 2.1 (Visualization System),...,. Design By Numbers (DBN), Processing(P5), Adobe Scripting. 3

2 2.2 4, 4.,,,. 2.2.1, 2.,. 2.. x, y,,. 3D 2, 3. 3. x, y, x, (3 ),. 2 Processing 2.1..,.,. 4

2.2. 4 2.1: 2.2.2..,. DBN Processing 2.2. 2.2:.,. ( ),. 2.3 DBN 5

2 ( )., Processing 2.4..,. 2.3: 2.4: 6

2.2. 4 2.2.3 2...,.,,.,, dpi(dot per inch)..,,,,.,,,. / (, ).,,.,,. ( ),... 7

2 2.5.,.,,. 2.5: 2.2.4,... 2.6. Adobe Systems Illustrator.. 2.6: 8

3,, 3.,,,. 3.1 DBN MIT John Maeda, Design By Numbers (DBN)[1]. 3.1.1 DBN Maeda Design By Numbers (DBN),., WEB Java.,. DBN 9

3.,.,.,. 3.1.2 DBN DBN 2. Web DBN,. 3.1. 3.1: DBN,.,. 101 101 px. 3.2 3.1.2 DBN,. 3.2( 1). 3.3( 2) 10

3.1. DBN. 3.1.2( 3),. // #1 sample : bokasi // #3 sample : kousi Paper 0 Repeat A 0 100 { Repeat B 0 100 { Set [A B] (A+B) // #2 sample : mouse Paper 0 Forever { Set [<Mouse 1> <Mouse 2>] 100 Command Rectangle L B R T { Line L B R B Line R B R T Line R T L T Line L T L B Command RectInRect H V N S { Repeat B 0 N { Set A (B*S) Rectangle (H-A) (V-A) (A+H) (A+V) Paper 0 RectInRect 26 26 12 4 RectInRect 74 26 12 4 RectInRect 26 74 12 4 RectInRect 74 74 12 4 3.2: DBN 1 3.3: DBN 2 3.4: DBN 3 11

3 3.1.3 DBN 2002 4 2003 4, 4 DBN. DBN., DBN. DBN. 1. DBN,...... 2. DBN.. C (sin, cos, tan).,.,., C. 3.1,. DBN. 12

3.2. Processing 3.1: 2002 ( ) ( ) ( ) / 3 12 / 14 2 2 5 2003 ( ) ( ) ( ) / 6 12 / 9 4 2 2 3.2 Processing MIT Processing. 3.2.1 Java Processing Maeda Fry Reas, DBN Processing. DBN,., DBN 3 (JPEG, GIF, ). DBN, Processing Java Applet, Web.,. 13

3 3.2.2 Processing Processing Processing., Java. 3.5 Proce55ing.. :. :. :. :. :. :Java. ( Java html ) 3.5: Processing 14

3.2. Processing Processing, 3. Basic Mode :. Standard Mode :,. Advanced Mode : JAVA. Basic Mode, Standard Mode. DBN Standard Mode Processing.. Basic Mode, Standard Mode, 3.6. //Basic Mode sample //Standard Mode sample size(200, 200); background(255); nostroke(); color inside = color(143, 149, 229); color middle = color(90, 102, 242); color outside = color(12, 17, 76); fill(inside); ellipse(0, 0, 200, 200); fill(middle); ellipse(0, 0, 100, 100); fill(outside); ellipse(0, 0, 55, 55); void setup() { size(200, 200); nobackground(); refresh(); void refresh(){ fill(251, 182, 218); nostroke(); rect(0, 0, width, height); void loop() { stroke(255, 0, 0); if(mousepressed && pmousex!= 0 && pmousey!= 0) { line(mousex,mousey,pmousex,pmousey); 15

3 3.6: Processing Java Processing. Processing Java import,. Processing Java., Processing. 3.7: Java 3.8: Processing 16

3.2. Processing //programmed by JAVA //object.java import java.applet.applet; import java.awt.*; import java.lang.object; public class objects extends Applet{ public void init(){ createimage(150,100); setbackground(color.gray); public void paint(graphics g){ int line_x[] = {12,120,125; int line_y[] = {50,15,60; g.setcolor(color.white); g.fillrect(10,10,60,60); g.setcolor(color.black); g.drawrect(10,10,60,60); g.setcolor(color.white); g.filloval(80,10,60,60); g.setcolor(color.black); g.drawoval(80,10,60,60); g.setcolor(color.white); g.fillpolygon(line_x, line_y, 3); g.setcolor(color.black); g.drawpolygon(line_x, line_y, 3); //programmed by Processing size(150,100); rect(10,10,60,60); ellipse(80,10,60,60); triangle(12,50, 120,15, 125,60); 17

3 3.2.3 Processing 2003 5 2 Processing. Processing. 1... ( ),. Java, Java. Java Applet,. DBN,. DBN ( ).. 2.... DBN, C Java, Processing. Processing, Java (, ) Processing. 18

3.3. Adobe Scripting 3.3 Adobe Scripting Adobe Scripting Adobe Systems Illustrator, Photoshop., Illustrator, Photoshop,., Illustrator. 3.3.1 3 Adobe Scripting Adobe Illustrator 10, Adobe Photoshop 7. Adobe Scripting. Windows Visual Basic, Macintosh AppleScript, JavaScript 3. JavaScript., Adobe Scripting, Illustrator. JavaScript JavaScript Netscape,.,. HTML WEB. Web,. 3.3.2 Adobe Scripting Adobe Scripting Illustrator, Illustrator. Illustrator [...]. 19

3 Illustrator. Illustrator. JavaScript, 3.9. // Adobe Scripting sample 1 var N = 5120; var doc = documents.add(documentcolorspace.rgb, N/2, 1000); if(documents.length > 0){ var srcpath = "Macintosh HD:Users:populi:AS_Sample:raw.txt"; var thefile = new File(srcPath); var isopen = thefile.open("r"); if(isopen){ thefile.seek(0, 0); line = activedocument.pathitems.add(); var points = new Array(N); for(var i = 0; i < N; i++){ points[i] = new Array(2); for(i = 0; i < N; i++){ var contents = thefile.readln(); points[i][0] = i/2; points[i][1] = contents * 5000 +500; line.setentirepath(points); thefile.close(); 3.9: Scripting 1 20

3.3. Adobe Scripting, JavaScript Illustrator. 3.10, 3.11,. // Adobe Scripting sample 2 if (documents.length > 0 ){ var star = activedocument.pathitems.star(300, 230, 200, 150, 7); var mycolor = new Color(); var myrgb = new RGBColor(); myrgb.red = 255; myrgb.green = 110; myrgb.blue = 30; mycolor.rgb = myrgb; star.fillcolor = mycolor; star.strokecolor = mycolor; for(t=0;t<500;t+=5){ var x= Math.cos(t)*Math.cos(t)*500 + 50; var y= Math.sin(t)*Math.sin(t)*500 + 50; var z=t-100; var star1 = activedocument.pathitems.star(x, z, 20, 12, 7); var mycolor = new Color(); var mycolor2 = new Color(); var myrgb = new RGBColor(); myrgb.red = 230-0.3*t; myrgb.green = 255-0.5*t; myrgb.blue = 80; var myrgb2 = new RGBColor(); myrgb2.red = 0; myrgb2.green = 255; myrgb2.blue = 80; mycolor.rgb = myrgb; mycolor2.rgb = myrgb2; star1.fillcolor = mycolor; star1.strokecolor = mycolor2; 21

3 3.10: Scripting 2 3.11: Scripting 3 22

3.3. Adobe Scripting // Adobe Scripting sample 3 var IE = 480; var JE = 640; var doc = documents.add(documentcolorspace.rgb, (JE * 10)/10, (IE * 10)/10); function plot(i, j, red, green, blue){ var circle = activedocument.pathitems.ellipse((i+1)*10, (j+1)*10, 8, 8); mycolor = new Color(); myrgb = new RGBColor(); myrgb.red = parseint(red); myrgb.green = parseint(green); myrgb.blue = parseint(blue); mycolor.rgb = myrgb; circle.fillcolor = mycolor; circle.strokecolor = mycolor; return; if(documents.length > 0){ var srcpath = "Macintosh HD:Users:populi:AS_Sample:dots_color.dat"; var thefile = new File(srcPath); var isopen = thefile.open("r"); if(isopen){ thefile.seek(0, 0); for(var i = 0; i < IE; i++){ for(var j = 0; j < JE; j++){ var red = thefile.readln(); var green = thefile.readln(); var blue = thefile.readln(); if(i%10 == 0 && j%10 == 0){ var dots = plot((i), (j)-1, red, green, blue); thefile.close; 23

3 3.3.3 Adobe Scripting Adobe Scripting. 1..,. 2. Illustrator.. [ ]. Adobe Scripting 2004 illustrator CS. Illustrator., 2004 Adobe Scripting,. 3.4,..,. Web. Macromedia Fash,.,. 24

3.5. 3.5 2. 3.2. 3.2: DBN Processing Adobe Scriptng DBN Processing, Processing., DBN Processing.,,., Adobe Scripting,.,. 25

4, 4.1,.,,,. Illustrator., Illustrator,.,. 4.1: 27

4 4.1, ( 4.2 ).,.,, Illustrator. 4.2: 4.2,. 1. 1 2..,,.,, Illustrator. 28

4.2. 4.2 4.1.,.,,. 4.1: Rect Rect ( x, y, width, height ) ;. FillRect() FillRect ( x, y, width, height ) ;. Square() Square ( x, y ) ;. FillSquare() FillSquare ( x, y) ;. Circle() Circle ( x, y, r ) ;. FillCircle() fillcircle(x, y, r ) ;. Line() Line( x1, y1, x2, y2 ) ; PenColor() PenColor ( r, g, b ) ; PenKind() PenKind( thickness ) ; FillColor FillColor ( r, g, b ) ; Repeat Repeat n n. MousePoint MousePoint0 Mousepoint1. MouseX MouseX0 MouseX1 y. MouseY MouseY0 MouseY1 y. 29

4 4.3. 4.3,.. r = 0; Repeat MousePoint { FillColor(r, 0, 0); FillCircle(MouseX, MouseY, 10); r++; b = 150; Repeat MousePoint1 { FillColor(0, 0, b); Line(MouseX1, MouseY1, 300, 250); b--; 4.3: 1 30

4.3. 4.4,.. 4.4: 2 4.5 4.4., Illustrator.. 4.5: 3 31

5,,.,,. 33

,,.,,.,,. 35

[1] Jhon, M.(1999): Design By Numbers, MIT Press [2] Proce55ing http://proce55ing.net/ [3] Matt, W.(2002): Digital Information Graphics,Thames & Hudson Ltd, Digital Information Graphics, 2003 3 [4], Information Desighn Source Book,, 2003 10 [5] David, E. P. et al.(2003): Adobe Scripting, Wiley Publishing, Inc. [6] Adobe illustrator version 9.0, Plug-in Software Development Kit Programmer s Guide for Machintosh and Windows, Revised: October 1999 [7] Adobe illustrator version 9.0, Plug-in Software Development Function Reference for Machintosh and Windows, Revised: October 1999 [8] Netscape, netscape devedge, http://devedge.netscape.com/ [9], JavaScript,, 2002 1 [10] Sun Microsystems, Sun Microsystems, http://www.sun.com/index.xml [11] Sun Microsystems, The Source for Java Technology, http://java.sun.com/ [12], Java,, 2001 1 [13] Java2 Platform Std.Ed.v1.3 http://java.sun.com/ (http://java.sun.com/j2se/1.3/ja/docs/ja/api/java/util/jar/package-summary.html) [14],, Java,, 2001 6 [15], JAVA,, 1997 3 [16], CodeWarrior C,, 1996 12 25 [17], C++,, 2002 10 [18], C,, 1993 11 [19] B.W., D.M., C 2 ANSI,, 1989 6 37

[20], Visual C++6.0,, 1998 11 [21], Visual C++6.0 - -,, 1999 6 [22],,,, 1988 11 [23], 1, 2, 2001 4 [24] N.Matthew, R.Stones,, Linux UNIX,, 1999 3 [25] Jhon R.Levine, Tony Mason, Doug Brown,, lex and yacc, 1994 11 [26] Microsoft Corporation, UNIX Applcation Migration Guide, October 2002 http://msdn.microsoft.com/library/default.asp?url=/library/enus/dnucmg/html/ucmgch07.asp [27] Microsoft Corporation, Services fot UNIX Home, http://www.microsoft.com/japan/windows/sfu/default.asp [28] MKS Inc, MKS Toolkit http://www.mkssoftware.com/ [29] TK, Visual C++ bison flex http://homepage1.nifty.com/hp tk prg/tip1.htm [30], nitoyon.com/vc++, http://www.nitoyon.com/myself/ 38

2004 3