diff --git "a/\043hello2.rb\043" "b/\043hello2.rb\043" new file mode 100755 index 0000000..09523ef --- /dev/null +++ "b/\043hello2.rb\043" @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# -*- coding: utf-8 -*- +x=0 +while x<10 + a=spawn(sprintf("display -geometry +%s+%s jdlogo_A.png",x,x)) + puts("鳥海塾") + sleep(0.1) + x+=1 +end +y=0 +while y<10 + Process.kill(:INT,a) + sleep(0.1) + y+=1 + puts(y) +end diff --git "a/.\043hello2.rb" "b/.\043hello2.rb" new file mode 120000 index 0000000..ea85f77 --- /dev/null +++ "b/.\043hello2.rb" @@ -0,0 +1 @@ +j2402@jd.koeki-u.ac.jp.992:1721772063 \ No newline at end of file diff --git a/heelo.rb b/heelo.rb index e4c3471..66f4fa1 100644 --- a/heelo.rb +++ b/heelo.rb @@ -1,15 +1,15 @@ -def junia - as=spawn("display -geometry +1+100 jdlogo_A.png") +def junia(y) + as=spawn(sprintf("display -geometry +%s+%s jdlogo_A.png",y,y)) puts("ジュニアドクター鳥海塾") end def syasin bn=spawn("display -geometry +500+100 IMG_20240623_135241.jpg") puts("写真") end -y=0 -while y<10 - as=spawn("display -geometry +1+100 jdlogo_A.png") +y=10 +while y<1010 + as=spawn(sprintf("display -geometry +%s+%s jdlogo_A.png",y,y)) puts("ジュニアドクター鳥海塾") sleep(1) bn=spawn("display -geometry +500+100 IMG_20240623_135241.jpg") @@ -19,5 +19,5 @@ sleep(1) Process.kill(:INT,bn) sleep(1) - y+=1 + y+=100 end diff --git a/hello2.rb b/hello2.rb index 2a79738..c9aec4c 100755 --- a/hello2.rb +++ b/hello2.rb @@ -1,8 +1,16 @@ #!/usr/bin/env ruby # -*- coding: utf-8 -*- - -a="あ牙" -if a.slice!("あ")=="あ" - puts("あ があるよ") +x=0 +while x<10 + a=spawn(sprintf("display -geometry +%s+%s jdlogo_A.png",x,x)) + puts("鳥海塾") + sleep(0.1) + x+=1 end -puts(a) +y=0 +while y<100 + Process.kill(:INT,a) + sleep(0.1) + y+=1 + puts(y) +end