Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
mrholybean
mrholybean's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Codes did not function normally after convert to web version
[2 Replies]
09-Apr-2013 01:34 PM
Forum:
Processing with Other Languages
he following are my codes:
PFont myFont;
String myText="A";
void setup() {
size(775, 400);
myFont = createFont("GenBasB.ttf", 48);
}
void draw() {
background(0, 0, 0);
textFont(myFont, 160);
fill(255, 255, 255);
translate(width/2, height/2);
for (int i=0; i<12; i=i+1) {
fill(255, 255, 255);
textAlign(CENTER); //LEFT CENTER RIGHT
pushMatrix();
rotate(PI*i/3);
text(myText, 0, 0);
popMatrix();
}
}
void keyPressed() {
if (key == CODED)
{
if (keyCode == LEFT)
{
myText = "";
}
}
else
myText = "";
{
myText = myText + key;
}
}
Please advice, thank you.
«Prev
Next »
Moderate user : mrholybean
Forum