課題

Similar documents
課題


課題


Processing入門マニュアル17

課題

課題

課題

空き容量一覧表(154kV以上)

2/8 一次二次当該 42 AX 変圧器 なし 43 AY 変圧器 なし 44 BA 変圧器 なし 45 BB 変圧器 なし 46 BC 変圧器 なし

挙動チェックポイントなどセミコロン ; を忘れていませんか? 黄色なんだか動かないで表示されている部分またはその少し前 Syntax error, maybe a missing にセミコロンを忘れている場所はありま semicolon? などと表示されます せんか? なんだか動作がおかしい の部分

<4D F736F F D B B83578B6594BB2D834A836F815B82D082C88C60202E646F63>


pp2018-pp4base

Processingをはじめよう

tn_soturon_sjis.dvi

配付資料

課題

表 6-1 文 字 列 表 示 関 連 のデータ 型 と 関 数 その 1 関 数 名 など PFont String loadfont(file) textfont(f) textfont(f,size) text(str,x,y) text(str,x,y,w,h) textsize(size)

<95F18D908F91967B95B62E696E6464>

もう少し数学っぽい関数もあります 関数名 abs(x) sqrt(x) sq(x) pow(x,n) exp(x) log(x) dist(x1, y1, x2, y2) constrain(v, m0, m1) lerp(v0,v1,t) map(v, low1, high1, low2, hig

pp2018-pp9base

情報システム設計論II ユーザインタフェース(1)

Microsoft Word - Sample_CQS-Report_English_backslant.doc

12 重度訪問介護重度障害者等の場合 ( 重度訪問介護 Ⅰ)

スライド 1

GH_013_JP.indb

情報メディア基盤ユニット用資料 (2013 年 5 月 21 日分 ) Processing 言語による情報メディア入門 文字列と画像の表示と座標変換 神奈川工科大学情報メディア学科 までのプログラムでは 図形の表示だけを扱ってきました 色々今なプログラムを作っていく際には 図形の表示だけではなく

2.ポイント 表 ポイントランキングのポイントは 記 のポイント 表 を 使 用 いたします ク レート A B C D E F G H I J K L M N 優 勝

Processingをはじめよう

Microsoft PowerPoint - [150421] CMP実習Ⅰ(2015) 橋本 CG編 第1回 幾何変換.pptx

2 (1) a = ( 2, 2), b = (1, 2), c = (4, 4) c = l a + k b l, k (2) a = (3, 5) (1) (4, 4) = l( 2, 2) + k(1, 2), (4, 4) = ( 2l + k, 2l 2k) 2l + k = 4, 2l

問 1 図 1 の図形を作るプログラムを作成せよ 但し ウィンドウの大きさは と し 座標の関係は図 2 に示すものとする 図 1 作成する図形 原点 (0,0) (280,0) (80,0) (180,0) (260,0) (380,0) (0,160) 図 2 座標関係 問 2

北河内 2 次予選 13 BI 14 BJ BE BF BG BH BA BB BC BD E 負 X 勝 G 負 V 勝 M 負 P 勝 O 負 N 勝 U 負 H 勝 W 負 F 勝 BS BT BO BP BQ BR BK BL BM BN AC 負 AV 勝 AE 負 AT 勝

1/68 A. 電気所 ( 発電所, 変電所, 配電塔 ) における変圧器の空き容量一覧 平成 31 年 3 月 6 日現在 < 留意事項 > (1) 空容量は目安であり 系統接続の前には 接続検討のお申込みによる詳細検討が必要となります その結果 空容量が変更となる場合があります (2) 特に記載

untitled

O E ( ) A a A A(a) O ( ) (1) O O () 467

課題

2. ポイント表ポイントランキングのポイントは下記のポイント表を使用いたします ク レート A B C D E F G H I J K L M N 優勝 準優勝

Microsoft PowerPoint P演習 第10回 関数.ppt [互換モード]

設問 println はそこで指定されている内容を出力して改行するものである. 一方,print は内容を出力して改行しないものである. 下記のプログラムそれぞれについて出力結果がどうなるか回答せよ. 下記のプログラム - を実行すると, fms という文字列が 回表示される. プログラム - vo

2 個の円の移動サンプル 9-2 float y0,y1; // 円の中心の Y 座標 float x0,x1; // 円の中心の X 座標 float v0,v1; // 円の縦方向の移動速度 int radius; size(300,400); radius = 10; v0 = random(


情報システム設計論II ユーザインタフェース(1)

Catalog No.AR006-e DIN EN ISO 9001 JIS Z 9901 Certificate: 販売終了

プログラミング演習 Ⅰ 第 14 回 2017/6/5( 月 ) ゲームを作る クイズ 担当 : 紅林林

A(6, 13) B(1, 1) 65 y C 2 A(2, 1) B( 3, 2) C 66 x + 2y 1 = 0 2 A(1, 1) B(3, 0) P 67 3 A(3, 3) B(1, 2) C(4, 0) (1) ABC G (2) 3 A B C P 6

1N 1N2W(1N00A+1N01B) SB-AR SB-AC SB-AL SB-A SB-AP 2A 2A22 2A23 2A24 2A29 約 2.5 年 2A22 H

slide

Rerank-By-Example: Rerank Search Results by Operation

G3 北 G4 北 G4 南エリアの堰内容量について G3 北 G4 北 G4 南エリアについては 外周堰を共有する構造であり 堰内容量 ( 想定漏えい量 ) は 3 エリア分として考慮している G4 南エリアのフランジタンク解体に伴い 3 エリア共通の外周堰の一部 (G4 南エリア部分 ) につい

untitled

() () () () () 175 () Tel Fax

 

48 * *2

04年度LS民法Ⅰ教材改訂版.PDF

SML-01 series : LED


さくらの個別指導 ( さくら教育研究所 ) A 2 P Q 3 R S T R S T P Q ( ) ( ) m n m n m n n n

< F18D908F915F B926E8BE682C991CE82B782E98C9F93A297E12E786477>

行列代数2010A


r6.dvi

Nikon SB-800 使用説明書

( a 3 = 3 = 3 a a > 0(a a a a < 0(a a a

スライド 1

大容量情報検索論

76 3 B m n AB P m n AP : PB = m : n A P B P AB m : n m < n n AB Q Q m A B AQ : QB = m : n (m n) m > n m n Q AB m : n A B Q P AB Q AB 3. 3 A(1) B(3) C(

x, y x 3 y xy 3 x 2 y + xy 2 x 3 + y 3 = x 3 y xy 3 x 2 y + xy 2 x 3 + y 3 = 15 xy (x y) (x + y) xy (x y) (x y) ( x 2 + xy + y 2) = 15 (x y)

雨水利用による屋上緑化システム構築の試み

Velar_19.5MY_オプション価格表_042802

さくらの個別指導 ( さくら教育研究所 ) 1 φ = φ 1 : φ [ ] a [ ] 1 a : b a b b(a + b) b a 2 a 2 = b(a + b). b 2 ( a b ) 2 = a b a/b X 2 X 1 = 0 a/b > 0 2 a

欧州特許庁米国特許商標庁との共通特許分類 CPC (Cooperative Patent Classification) 日本パテントデータサービス ( 株 ) 国際部 2019 年 1 月 17 日 CPC 版のプレ リリースが公開されました 原文及び詳細はCPCホームページの C

PSCHG000.PS

L1-a.dvi

WRX STI VAB Grade Appliied Model / Year Eng. ECU # 20230EF0100 WRX STI D type Y 22765AK910 AZ1S000S WRX STI C type Y 22765AJ011

年組番号名前点数 設問 設問 設問 設問 設問 設問

高校生の就職への数学II

ネコでもわかるインタラクティブサウンド by ちゃーりー

情報システム設計論II ユーザインタフェース(1)

道路施設基本データ作成入力書式マニュアル(中国地方整備局版)平成20年10月

5 n P j j (P i,, P k, j 1) 1 n n ) φ(n) = n (1 1Pj [ ] φ φ P j j P j j = = = = = n = φ(p j j ) (P j j P j 1 j ) P j j ( 1 1 P j ) P j j ) (1 1Pj (1 1P

情報システム設計論II ユーザインタフェース(1)

LINEAR ALGEBRA I Hiroshi SUZUKI Department of Mathematics International Christian University

TIJ日本語教育研究会通信40号

直交座標系の回転

II 2 3.,, A(B + C) = AB + AC, (A + B)C = AC + BC. 4. m m A, m m B,, m m B, AB = BA, A,, I. 5. m m A, m n B, AB = B, A I E, 4 4 I, J, K


北河内 2 次予選 13 BI 4 日 14 BJ 3 日 BE 4 日 BF 4 日 BG 3 日 BH 3 日 BA 4 日 BB 4 日 BC 3 日 BD 3 日 E 負 X 勝 G 負 V 勝 M 負 P 勝 O 負 N 勝 U 負 H 勝 W 負 F 勝 ミュートス交野 Tiamo 交野

SO(2)

1 1 3 ABCD ABD AC BD E E BD 1 : 2 (1) AB = AD =, AB AD = (2) AE = AB + (3) A F AD AE 2 = AF = AB + AD AF AE = t AC = t AE AC FC = t = (4) ABD ABCD 1 1

) 9 81

北河内 2 次予選 13 BI 4 日 14 BJ 3 日 BE 4 日 BF 4 日 BG 3 日 BH 3 日 BA 4 日 BB 4 日 BC 3 日 BD 3 日 E 負 X 勝 G 負 V 勝 M 負 P 勝 O 負 N 勝 U 負 H 勝 W 負 F 勝 ミュートス交野 Tiamo 交野

( )

CG

0.6 A = ( 0 ),. () A. () x n+ = x n+ + x n (n ) {x n }, x, x., (x, x ) = (0, ) e, (x, x ) = (, 0) e, {x n }, T, e, e T A. (3) A n {x n }, (x, x ) = (,

Computer Graphics


2001 Mg-Zn-Y LPSO(Long Period Stacking Order) Mg,,,. LPSO ( ), Mg, Zn,Y. Mg Zn, Y fcc( ) L1 2. LPSO Mg,., Mg L1 2, Zn,Y,, Y.,, Zn, Y Mg. Zn,Y., 926, 1


Transcription:

colormode(hsb,359,99,99); background(0,0,99); s = 99; x = mousex; y = mousey; nostroke(); while(s >= 0 && (0 <= x x < width) && (0 <= y y < height)){ fill(0,s,99); ellipse(x,y,20,20); x += int(random(4,10)); y += int(random(4,10)); s += int(random(2,5));

void setup() { size(600, 600); colormode(hsb, 359, 99, 99); num = 12; pitch = 50; diameter = 40; void draw() { background(0, 0, 99); w = pitch*(num-1); leftx = (width-w)/2; nostroke(); for (int x = 0; x < num; x++) { for (int y = 0; y < num; y++) { xpos = leftx + x * pitch; ypos = leftx + y * pitch; fgcolor = color(random(360.0*x/num, 360*(x+1)/num), random(40.0+60.0*y/num), 99); fill(fgcolor); ellipse(xpos, ypos, diameter, diameter); len = 20; background(255); nofill(); stroke(0); for(x=mousex;(x+len) < width;x += len){ rect(x,mousey,len,len); x = x-len;

for(y=mousey;y < height;y += len){ rect(x,y,len,len); len = 20; background(255); nofill(); stroke(0); x = mousex; while((x+len) < width){ rect(x,mousey,len,len); x = x + len; x = x-len; y = mousey; while(y < height){ rect(x,y,len,len); y = y + len;

! " float theta; theta = 0; background(255); translate( (g), (h) ); stroke(255,10,10); fill(255,10,10); ellipse(0,0,40,40); theta = theta + 1; rotate(radians( (i) )); stroke(10,255,10); fill(10,255,10); ellipse( (j), (k),20,20);

void setup() { size(400, 400); void draw() { background(255); drawmelon(); drawlemon(); void drawmelon() { strokeweight(5); stroke(51, 153, 51); fill(153, 255, 153); arc(width/2,height/2,0.8*width,0.6*height, (l), (m) );

/* arc(width/2,height/2,0.8*width,0.6*height, radians( (l0) ), radians( (m0) )); */ void drawlemon() { strokeweight(10); stroke(255, 204, 0); fill(255, 255, 102); arc(width/2,width/2,0.4*width,0.4*height, (n), (o) ); /* arc(width/2, width/2, 0.4*width, 0.4*height, radians( (n0) ),radians( (o0) )); */ size(200,200); background(230); // 胴体 stroke(0); fill(0); ellipse(110,45,70,70); ellipse(110,70,70,70); rect( 75,45,70,30); nostroke(); fill(255); arc( (p), (q),70, 70, 0, PI); // あご // 左目 fill( (r) ); ellipse(92.5, 45, 35, 35); fill( (s) ); ellipse(96, 45, 8, 8); // 右目 fill( (t) ); ellipse(127.5, 45, 35, 35); fill( (u) ); ellipse(124, 45, 8, 8); fill(0); quad(110, 52, 114, 59, 110, 66, 106, 59); // くちばし

size(700,200); colormode(hsb,359,99,99); fadetowhite(); color colorofball = color(map(mousex, (v), (w), (x), (y ),99,99); stroke(colorofball); fill(colorofball); float r = random( (z), (aa) ); ellipse(mousex,mousey,2*r,2*r); void fadetowhite(){ stroke( (ab) (ac), (ad),20); fill( (ae) (af), (ag),20); rectmode(corner); rect( (ah), (ai), (aj), (ak) );

nofill(); strokecap(square); background(0); translate(width/2,height/2); pushmatrix(); rotate(map(195-15,0,360,12,4)*radians(millis()/60)); strokeweight(map(195-15,0,360,5,40)); stroke(255); arc(0,0,0.3*width,0.3*height,radians(15),radians(195)); popmatrix(); pushmatrix(); rotate(map(60-0,0,360,12,4)*radians(millis()/60)); strokeweight(map(60-0,0,360,5,40)); stroke(255); arc(0,0,0.4*width,0.4*height,radians(0),radians(60)); popmatrix(); pushmatrix(); rotate(map(195-75,0,360,12,4)*radians(millis()/60)); strokeweight(map(195-75,0,360,5,40)); stroke(255); arc(0,0,0.6*width,0.6*height,radians(75),radians(195)); popmatrix(); float startangle,endangle; float rfrac; nofill(); strokecap(square); background(0); translate(width/2,height/2); startangle = 15; endangle = 195; rfrac = 0.3; drawarc(); startangle = 0; endangle = 60; rfrac = 0.4; drawarc(); startangle = 75; endangle = 195;

rfrac = 0.6; drawarc(); void drawarc(){ pushmatrix(); rotate(map( (al) - (am),0,360,12,4)* radians(millis()/60)); strokeweight(map( (an) - (ao),0,360,5,40)); stroke(255); arc(0,0, (ap) *width, (aq) *height, radians( (ar) ),radians( (as) )); popmatrix(); PFont font; int maxtime; (at) pressing=false; maxtime = 0; (au) textfont(font,24); background(255); fill(0); if(mousepressed){ if(pressing == (av)){ starttime = millis(); pressing = (aw); interval = (ax)-starttime; text(interval,mousex,mousey); else{ pressing = (ay); if((az)> maxtime){ maxtime = (ba); text(maxtime,0,height-textdescent());

void setup() { size(400, 400); colormode(hsb,359,99,99); void draw() { background(0,0,99); fill((bb), 95, 95); stroke(0,99,0); translate(mousex,mousey); if (mousex % 10 < 5) { arc(0, 0, 40, 40, PI/6, 11*PI/6); rotate(pi/6); line(0,0, (bc),0); rotate((bd)); line((be)); else if (mousex % 10 < 9) { arc(0,0, 40, 40, PI/12, 2*PI-PI/12); rotate((bf)); line((bg)); rotate((bh)); line((bi)); else { ellipse((bj), (bk), 40, 40);

void setup() { size(600, 400); colormode(hsb, 359, 99, 99); background(0, 0, 99); void draw() { stroke(color(random(360), 99, 99), 50); float x = random(width); float y = random(height); float len = random(50); strokeweight(4); line(x, y, x, y+len); line(x, y, x-len*0.7, y-len*0.7 ); line(x, y, x+len*0.7, y-len*0.7 ); //drawtree(); void setup() { size(600, 400); colormode(hsb, 359, 99, 99); background(0, 0, 99); void draw() { stroke(color(random(360), 99, 99), 50); drawtree(); void drawtree() { //