「proce55ing-gr02」の編集履歴(バックアップ)一覧に戻る
void draw(){
fill(nodeColor);
stroke(0);
strokeWeight(0.5);
ellipse(x, y, 6, 6);
}
void draw(){
if (fixed){
fill(nodeColor);
stroke(0);
strokeWeight(0.5);
rectMode(CORNER);
float w = textWidth(label) + 10;
float h = textAscent() + textDescent() + 4;
rect(x - w/2, y - h/2, w, h);
fill(0);
textAlign(CENTER, CENTER);
text(label, x, y);
}
else {
fill(nodeColor);
stroke(0);
strokeWeight(0.5);
ellipse(x, y, 6, 6);
}
}