質問を探してみましたが、悲しいことに、他のスレッドで自分の質問に対する答えを見つけることができませんでした。 :(テーブルにクリックデータを保存する(処理中)
私の問題は、以下の通りである。
I'veはヒートマップにclickdataを転送コードに手を持って は、今、私が必要となるのか、どの文書テーブルに言っclickdataを転送する方法です。 。座標 ここでは、コードのうち、(うまくいけば)関連する部分である:
void mouseReleased()
{
if (mouseX >= 0 && mouseX < backgroundImage.width && mouseY >= 0 && mouseY < backgroundImage.height)
{
// blit the clickmapBrush onto the (offscreen) clickmap:
clickmap.blend(clickmapBrush, 0,0,clickmapBrush.width,clickmapBrush.height,mouseX-clickmapBrush.width/2,mouseY-clickmapBrush.height/2,clickmapBrush.width,clickmapBrush.height,BLEND);
// blit the clickmapBrush onto the background image in the upper left corner:
image(clickmapBrush, mouseX-clickmapBrush.width/2, mouseY-clickmapBrush.height/2);
// render the heatmapBrush into the gradientMap:
drawToGradient(mouseX, mouseY);
コードがソフトウェア「処理」するために使用されている 私は私の質問は十分に特定であると思います。 210あらかじめありがとう!あなたが最初に記録マウスクリックのx値を取得したい場合は、たとえば、
// We will store a list of coordinates,
// each representing a single mouse click's position
ArrayList<PVector> clickData;
void setup() {
clickData = new ArrayList<PVector>();
// Do any aditional setup you need here
}
void draw() {
// Do any drawing here
}
// Called after each press and release of the mouse
void mouseClicked() {
// Add the mouse's position to our list of mouse click positions
clickData.add(new PVector(mouseX, mouseY));
}
:ここで=)
を読むことができますか? – qxz
Htmlテーブルは素晴らしいでしょう! =) – Jenn
あなたはどんな種類のテーブルを意味しますか? CSVデータのテキストファイル/スプレッドシートも問題ありませんか?どのような種類のテーブルが必要か、それにどのような計画を立てているのか、もっと詳しく教えてください。 – JeremyDouglass