<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://w3.kuhalabo.net/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
		<id>http://w3.kuhalabo.net/wiki/index.php?action=history&amp;feed=atom&amp;title=%E9%85%8D%E5%88%97%E3%81%A8%E3%83%9E%E3%82%A6%E3%82%B9%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%A9%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3</id>
		<title>配列とマウスインタラクション - 変更履歴</title>
		<link rel="self" type="application/atom+xml" href="http://w3.kuhalabo.net/wiki/index.php?action=history&amp;feed=atom&amp;title=%E9%85%8D%E5%88%97%E3%81%A8%E3%83%9E%E3%82%A6%E3%82%B9%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%A9%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3"/>
		<link rel="alternate" type="text/html" href="http://w3.kuhalabo.net/wiki/index.php?title=%E9%85%8D%E5%88%97%E3%81%A8%E3%83%9E%E3%82%A6%E3%82%B9%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%A9%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3&amp;action=history"/>
		<updated>2026-05-09T17:13:39Z</updated>
		<subtitle>このウィキのこのページに関する変更履歴</subtitle>
		<generator>MediaWiki 1.19.2</generator>

	<entry>
		<id>http://w3.kuhalabo.net/wiki/index.php?title=%E9%85%8D%E5%88%97%E3%81%A8%E3%83%9E%E3%82%A6%E3%82%B9%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%A9%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3&amp;diff=970&amp;oldid=prev</id>
		<title>2015年11月10日 (火) 05:27にKuhaによる</title>
		<link rel="alternate" type="text/html" href="http://w3.kuhalabo.net/wiki/index.php?title=%E9%85%8D%E5%88%97%E3%81%A8%E3%83%9E%E3%82%A6%E3%82%B9%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%A9%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3&amp;diff=970&amp;oldid=prev"/>
				<updated>2015-11-10T05:27:23Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←前の版&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;2015年11月10日 (火) 05:27時点における版&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;103行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;103行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== 参考 ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== 参考 ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;生命情報アート論&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ジェネラティブアート論&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:授業]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:授業]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kuha</name></author>	</entry>

	<entry>
		<id>http://w3.kuhalabo.net/wiki/index.php?title=%E9%85%8D%E5%88%97%E3%81%A8%E3%83%9E%E3%82%A6%E3%82%B9%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%A9%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3&amp;diff=969&amp;oldid=prev</id>
		<title>2015年10月27日 (火) 08:51にKuhaによる</title>
		<link rel="alternate" type="text/html" href="http://w3.kuhalabo.net/wiki/index.php?title=%E9%85%8D%E5%88%97%E3%81%A8%E3%83%9E%E3%82%A6%E3%82%B9%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%A9%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3&amp;diff=969&amp;oldid=prev"/>
				<updated>2015-10-27T08:51:33Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←前の版&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;2015年10月27日 (火) 08:51時点における版&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;7行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;7行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;static const int NUM = 10; //定数　ボールの個数&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;static const int NUM = 10; //定数　ボールの個数&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;float x[NUM]; //円のx座標&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;float y[NUM]; //円のy座標&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;float radius[NUM]; //円の半径&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;int red[NUM];&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;int red[NUM];&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;int green[NUM];&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;int green[NUM];&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;int blue[NUM];&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;int blue[NUM];&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;float radius[NUM]; //円の半径&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;float loc_x[NUM];&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;float loc_x[NUM];&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kuha</name></author>	</entry>

	<entry>
		<id>http://w3.kuhalabo.net/wiki/index.php?title=%E9%85%8D%E5%88%97%E3%81%A8%E3%83%9E%E3%82%A6%E3%82%B9%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%A9%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3&amp;diff=721&amp;oldid=prev</id>
		<title>2014年11月17日 (月) 03:05にKuhaによる</title>
		<link rel="alternate" type="text/html" href="http://w3.kuhalabo.net/wiki/index.php?title=%E9%85%8D%E5%88%97%E3%81%A8%E3%83%9E%E3%82%A6%E3%82%B9%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%A9%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3&amp;diff=721&amp;oldid=prev"/>
				<updated>2014-11-17T03:05:24Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←前の版&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;2014年11月17日 (月) 03:05時点における版&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;102行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;102行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;== 参考 ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[生命情報アート論]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:授業]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kuha</name></author>	</entry>

	<entry>
		<id>http://w3.kuhalabo.net/wiki/index.php?title=%E9%85%8D%E5%88%97%E3%81%A8%E3%83%9E%E3%82%A6%E3%82%B9%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%A9%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3&amp;diff=719&amp;oldid=prev</id>
		<title>Kuha：ページの作成：「 *配列を使用して、複数のボールを動かす。 *:mousePressedを使用して、ボールをマウスの位置に近づける。  &lt;pre&gt; #include &quot;ofApp.h&quot;  ...」</title>
		<link rel="alternate" type="text/html" href="http://w3.kuhalabo.net/wiki/index.php?title=%E9%85%8D%E5%88%97%E3%81%A8%E3%83%9E%E3%82%A6%E3%82%B9%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%A9%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3&amp;diff=719&amp;oldid=prev"/>
				<updated>2014-11-17T03:04:22Z</updated>
		
		<summary type="html">&lt;p&gt;ページの作成：「 *配列を使用して、複数のボールを動かす。 *:mousePressedを使用して、ボールをマウスの位置に近づける。  &amp;lt;pre&amp;gt; #include &amp;quot;ofApp.h&amp;quot;  ...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
*配列を使用して、複数のボールを動かす。&lt;br /&gt;
*:mousePressedを使用して、ボールをマウスの位置に近づける。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;quot;ofApp.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
static const int NUM = 10; //定数　ボールの個数&lt;br /&gt;
float x[NUM]; //円のx座標&lt;br /&gt;
float y[NUM]; //円のy座標&lt;br /&gt;
float radius[NUM]; //円の半径&lt;br /&gt;
&lt;br /&gt;
int red[NUM];&lt;br /&gt;
int green[NUM];&lt;br /&gt;
int blue[NUM];&lt;br /&gt;
&lt;br /&gt;
float loc_x[NUM];&lt;br /&gt;
float loc_y[NUM];&lt;br /&gt;
float speed_x[NUM];&lt;br /&gt;
float speed_y[NUM];&lt;br /&gt;
float acc_x[NUM];&lt;br /&gt;
float acc_y[NUM];&lt;br /&gt;
&lt;br /&gt;
bool mouse_pressed;&lt;br /&gt;
&lt;br /&gt;
//--------------------------------------------------------------&lt;br /&gt;
void ofApp::setup(){&lt;br /&gt;
&lt;br /&gt;
	ofBackground(0, 0, 0); //背景色の設定&lt;br /&gt;
	ofSetColor(255, 255, 0); //描画色の設定&lt;br /&gt;
	ofSetCircleResolution(64);//円の解像度&lt;br /&gt;
	ofEnableAlphaBlending();  //アルファチャンネルを有効にする&lt;br /&gt;
	ofSetBackgroundAuto(false); //背景色での塗りつぶしなし&lt;br /&gt;
	ofSetFrameRate(30); //フレームレイト設定&lt;br /&gt;
&lt;br /&gt;
	mouse_pressed = false; //マウスの状態&lt;br /&gt;
&lt;br /&gt;
	for(int i = 0; i &amp;lt; NUM; i++){&lt;br /&gt;
		loc_x[i] = ofRandom(0, ofGetWidth() );&lt;br /&gt;
		loc_y[i] = ofRandom(0, ofGetHeight() );&lt;br /&gt;
		speed_x[i] = ofRandom(-5, 5);&lt;br /&gt;
		speed_y[i] = ofRandom(-5, 5);&lt;br /&gt;
&lt;br /&gt;
		radius[i] = ofRandom( 5, 20); &lt;br /&gt;
		red[i] = ofRandom(10, 255);&lt;br /&gt;
		green[i] = ofRandom(0, 200);&lt;br /&gt;
		blue[i] = ofRandom(10, 200);&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//--------------------------------------------------------------&lt;br /&gt;
void ofApp::update(){&lt;br /&gt;
&lt;br /&gt;
	for(int i = 0; i &amp;lt; NUM; i++){&lt;br /&gt;
		acc_x[i] = ofRandom(-0.5,0.5);&lt;br /&gt;
		acc_y[i] = ofRandom(-0.5,0.5);&lt;br /&gt;
&lt;br /&gt;
		if(mouse_pressed){&lt;br /&gt;
			speed_x[i] = ( mouseX - loc_x[i] ) * 0.01;&lt;br /&gt;
			speed_y[i] = ( mouseY - loc_y[i] ) * 0.01;&lt;br /&gt;
		}&lt;br /&gt;
		else{&lt;br /&gt;
			speed_x[i] = speed_x[i] + acc_x[i];&lt;br /&gt;
			speed_y[i] = speed_y[i] + acc_y[i];&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
		if( loc_x[i] &amp;lt; 0 || loc_x[i] &amp;gt; ofGetWidth() ){&lt;br /&gt;
			speed_x[i] = speed_x[i] * -1;&lt;br /&gt;
		}&lt;br /&gt;
		if( loc_y[i] &amp;lt; 0 || loc_y[i] &amp;gt; ofGetHeight() ){&lt;br /&gt;
			speed_y[i] = speed_y[i] * -1;&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
		loc_x[i] = loc_x[i] + speed_x[i];&lt;br /&gt;
		loc_y[i] = loc_y[i] + speed_y[i];&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//--------------------------------------------------------------&lt;br /&gt;
void ofApp::draw(){&lt;br /&gt;
&lt;br /&gt;
	//全画面を半透明の黒でフェード&lt;br /&gt;
	ofSetColor(0, 0, 0, 10);&lt;br /&gt;
	ofRect(0, 0, ofGetWidth(), ofGetHeight());&lt;br /&gt;
&lt;br /&gt;
	for(int i = 0; i &amp;lt; NUM; i++){&lt;br /&gt;
		ofSetColor(red[i], green[i], blue[i]);&lt;br /&gt;
		ofCircle(loc_x[i],loc_y[i], radius[i]);&lt;br /&gt;
	}&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//--------------------------------------------------------------&lt;br /&gt;
void ofApp::mousePressed(int x, int y, int button){&lt;br /&gt;
	mouse_pressed = true;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//--------------------------------------------------------------&lt;br /&gt;
void ofApp::mouseReleased(int x, int y, int button){&lt;br /&gt;
	mouse_pressed = false;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kuha</name></author>	</entry>

	</feed>